[fpc-devel] enums and integer auto conversion

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Sep 11 01:10:42 CEST 2012

On 10 Sep 2012, at 23:42, Daniƫl Mantione wrote:

> Op Mon, 10 Sep 2012, schreef Jonas Maebe:
>> You can explicitly define the ordinal values of enumerations if you depend on that sort of stuff (which afaik the Qt units in fact do).
> That's a rewriting of history, as we invented that feature.

With as primary reason: interfacing with external C libraries.

> Obviously people were writing interfaces to external libraries before that. Were those programmers wrong? Not at all, they could succesfully rely on guaranteed binary representations in Borland manuals.

If the Borland defined that enumerations always start at 0, we will guarantee that too.


More information about the fpc-devel mailing list