delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/28/09:01:48

From: XXguille AT XXiies DOT XXes (Guillermo Rodriguez Garcia)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: typedef'ing a 24-bit integer
Date: Thu, 27 May 1999 20:13:21 GMT
Organization: Telefonica Transmision de Datos
Lines: 21
Message-ID: <374e4a23.1353984@noticias.iies.es>
References: <37459ABF DOT FF51CA41 AT aaual DOT ualg DOT pt> <374C2C34 DOT F91FB02 AT aaual DOT ualg DOT pt>
NNTP-Posting-Host: iies249.iies.es
Mime-Version: 1.0
X-Newsreader: Forte Agent 1.5/32.451
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

El día Wed, 26 May 1999 18:15:32 +0100, Miguel Guerreiro
<a14616 AT aaual DOT ualg DOT pt> escribió:

>What about other languages?...
>
>I think that in pascal you can do something like this:
>
>    type
>        uint24 = $0..$FFFFFF
>    end

But that doesn't mean that a uint24 variable will take three bytes,
just that the compiler will (try to) check the values you assign to an
uint24. It will probably still use four bytes to store it, at least in
32-bit machines.

Regards:
GUILLE
----
Guillermo Rodriguez Garcia
XXguille AT XXiies DOT XXes (ya sabes :-)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019