On 19 Dec 2002 at 13:10, Maurice Lombardi wrote:
[...]
What about the following
program teststruc;
{$define DWORD cardinal}
Actually, that has to be defined as a type - because it is used throughout (in other units as well).
type tBytes = packed record BaseMid: BYTE; Flags1: BYTE; Flags2: BYTE; BaseHi: BYTE end; type tBits = packed record BaseMid: DWORD(8); Typ: DWORD(5); Dpl: DWORD(2);
[...]
I see - so that is what those colons mean. In this case, the on-going discussions about what to do with this syntax become even more pertinent.
[...]
Not so easy to implement automatically, however. It needs extra identifiers for type and var of this type: I do not understand enough C to say if HighWord, Bytes and Bits are type names or variable names which can be used to refer to the struct coponent as a whole (I guess the second).
I believe that you are right - but others who know more might want to confirm that.
Thanks!
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/