The fact that Borland regarded "$FF..FF" as a 2's complement
representation and not as a base-16 representation of an integer is
not really what I would call "Pascal spirit". As a matter of fact,
"Borland mess" would be more appropriate. :-)

I always avoid such imponderabilities by using fillchar to set all bits of a structure to 1 (or 0);

fillchar(X,$F);

And single bits can be modified with AND/OR afterwards if needed.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to