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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to