Re: [fpc-devel] enums and integer auto conversion

2012-09-11 Thread Daniƫl Mantione
Op Tue, 11 Sep 2012, schreef Alexander Klenin: On Tue, Sep 11, 2012 at 8:03 AM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: If you want to do that, you need to add a layer in between that converts the sets into integer bitmasks in a reliable, portable and future-proof way. How about

Re: [fpc-devel] enums and integer auto conversion

2012-09-11 Thread Jonas Maebe
On 11 Sep 2012, at 06:18, Alexander Klenin kle...@gmail.com wrote: How about packed sets? Do they have well-defined memory layout? If not, then maybe they should? Set packing only influences the number of bytes occupied by sets, not their internal layout. And I don't think that should

Re: [fpc-devel] enums and integer auto conversion

2012-09-11 Thread Marco van de Voort
In our previous episode, Dani?l Mantione said: Sets, are a bit more complicated: Their binary layout is defined in Borland documentation, but this one of the few issues were FPC didn't follow Borland. FPC has smallsets, up to 32 items and longsets, up to 256 items. That's outdated, running