[fpc-devel] Packed array of boolean

Michael Schnell mschnell at lumino.de
Tue Apr 8 16:11:59 CEST 2008


Using implementation dependent internal representations (such as Bit 
position, endieness, size of "integer", pointers etc.) for communication 
via files or network is extremely bad style.

But of course he can't help it in that case. If a decent documentation 
is provided how the bits in the file are to be interpreted, any format 
is OK.

Thus I suggest using a dedicated function to read and write the file and 
internally use the most appropriate internal representation (Word or 
Byte Bool).

-Michael



More information about the fpc-devel mailing list