Re[2]: [fpc-pascal] variant part of a record
Пётр Косаревский
ppkk at mail.ru
Tue Sep 19 18:57:14 CEST 2006
> Yes, you do. :)
> Nevertheless
> some_type = record
> case Something : byte of
> 1: (x,y: word);
> 2: (z: longword);
> end;
Thank you, Jonas and Vincent, but I was vague: what I want is blockread'ing, so I have to use
record
Something: byte;
case byte of
1: (x,y: word);
2: (z: longword);
end;
Or use classes/properties (virtualization of structure: reading into memory, processing there, checking in run-time that data is accessed legally [if needed]). Should I? Is there less abstracted approach?
More information about the fpc-pascal
mailing list