[fpc-pascal] Scoped enums and inferred types

Marco van de Voort marcov at stack.nl
Wed Feb 21 16:18:18 CET 2018


In our previous episode, Ryan Joseph said:

> Adding compiler features is a slippery slope and I have no idea where to
> draw lines.  Scoped enums aren?t necessary and in fact enums in general
> could be replaced with constants easily enough so that feature was
> probably debated at some point also.

Having to decide a variable is scoped or not when it is declared is not the
most ideal solution anyway.  Logically you would decide that when creating
the scope, iow when importing, like in Modula2 or (afaik also) Extended
Pascal.




More information about the fpc-pascal mailing list