[fpc-devel] enums and integer auto conversion

Daniël Mantione daniel.mantione at freepascal.org
Mon Sep 10 23:12:53 CEST 2012

Op Mon, 10 Sep 2012, schreef Jonas Maebe:

> 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.

Yes! Let's also convert integers to enums with a case statement rather 
than typecast, just in case the compiler may not count enums from zero in 
the future ;)


More information about the fpc-devel mailing list