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. Jonas_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel