[fpc-pascal] FPC Advanced Records
Martin
lazarus at mfriebe.de
Fri Mar 9 22:37:22 CET 2012
On 09/03/2012 21:26, Mark Morgan Lloyd wrote:
>
> but is there any way to define something like an endianness-correcting
> type, i.e.:
>
> Type TAWSHeader=Record
> ThisSize: WordLE;
> ..
>
> where by the time ThisSize is accessed any disparity has been corrected?
>
Not sure if this will be of any use.
but you can always define an assignment incompatible type
WordLE = record data: Word; end;
and define all required overloaded operators
More information about the fpc-pascal
mailing list