12 Feb
2013
12 Feb
'13
5:26 p.m.
Steven D'Aprano wrote:
99.9% of the time I don't care what value enums have, in fact it is an advantage if I don't know. Pascal, as I remember it, doesn't give you any way to find out.
Yes, it does: the ord() function.
But I consider enums displaying as their name to be essential to an enum.
That's one thing that, frustratingly, standard Pascal *doesn't* give you (although many dialects have extensions that do). -- Greg