Word types..._(re)

Sun, 22 Jun 1997 04:13:25 +0200 (MET DST)


According to Frank Heckenbach:
> 
> And something I just noticed concerning "Word" (this is addressed more
> to Peter ;-) :
> 
> A "machine word" in the sense of assembly language actually describes
> the *size* of data and not whether it's signed or unsigned, doesn't it?
> (Data in asm are neither signed nor unsigned per se, it depends on which
> operations are used on them.) So from the original meaning (in PC real
> mode) "Word = 16 bits", Borland made "Word = 16 bits unsigned", and now
> you seem to be making "Word = unsigned" out of it...

Now you have got me!  (-:

Okay, so GPC will have `FooInt' for signed, `FooCard' for unsigned integer
types, and `FooWord' for types where we don't care about signedness (and
which are in fact unsigned).

These are many Integer types for GPC - much more than in BP.  So let's hope
that this will lead to clear programming, not to confusion ...

    Peter

 Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer
peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201]
 maintainer GNU Pascal [970510] - http://home.pages.de/~gnu-pascal/ [970125]


Peter Gerwinski (peter@agnes.dida.physik.uni-essen.de)

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