[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: enum and named sets


Le 08/12/2025 à 23:09, Brian G a écrit :
Being that enums are constants, and may not change then, the usage and generation of the enum it's self need not change, the compiler need only generate an integer array, by the set name also read only. and public if indicated. Nothing about the actual enum values usage or definition need change at all. What do you think?


Sorry, I was confused with another request: being able to use enumeration as a datatype and seeing them in autocompletion.

If you want the interpreter to create an integer array for your enumeration, why don't you just declare the array yourself? Why hijacking the enumeration syntax?

--
Benoît Minisini.


References:
enum and named setsBrian G <brian@xxxxxxxxxxxxxxxx>
Re: enum and named setsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: enum and named setsBrian G <brian@xxxxxxxxxxxxxxxx>