[fpc-pascal] Set format

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Nov 14 23:17:21 CET 2006

On 14 Nov 2006, at 23:12, Daniƫl Mantione wrote:

> Op Tue, 14 Nov 2006, schreef Jonas Maebe:
>> On 14 Nov 2006, at 22:04, Den Jean wrote:
>>> so that binary compatibility with frequently used
>>> bitmasks in C APIs is easier
>> Aren't bitpacked records/arrays more appropriate for that?
> Semantically speaking, no.

Sorry, I misread "bitmasks" as "bitfields". But using sets for C  
bitmasks is very dangerous, since sets are opaque and can differ from  
platform to platform (in practice only for endianess currently). It's  
the same for bitpacked arrays, in fact. Only bitfields in bitpacked  
records are identical as in C if combined with {$packrecords C}


More information about the fpc-pascal mailing list