`Word' data type_(re)

Sat, 14 Jun 1997 12:25:18 -0400



Peter Gerwinski wrote:

>     bits      signed       unsigned       C equivalent
>
>       8       ByteInt      Byte           [unsigned|signed] char
>      16       ShortInt     ShortWord      [unsigned] short
>      32       Integer      Word           [unsigned] int =3D=3D long
>      64       LongInt      LongWord       [unsigned] long long

I suggest keeping yourself more closely with Borland Pascal and Delphi. A=
nd
implement range to byte mapping i.e. if I define a range as 0..255 it
should occupy only one byte.

I suggest:
        =

     bits      signed       unsigned       C equivalent

       8       shortint      byte       [unsigned|signed] char
      16       smallInt     Word        [unsigned] short
      XX       Integer      cardinal    [unsigned] int =3D=3D long
      64       LongInt      LongWord    [unsigned] long long

where XX is platform dependent: natural sizes, so could be 16, 32 or 64,
128 bits, etc.

Groetjes,

Berend.


Berend de Boer (berend@compuserve.com)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es