Re: enum suggestion
- Posted by DerekParnell (admin) Feb 20, 2011
- 1377 views
petelomax said...
I wondered if anyone else thought this was a good idea:
enum xx_one, xx_two, xx_max=$ ?xx_one ?xx_two ?xx_max
should print 1 2 2
Pete
Something like this has been discussed. I think what we will eventually come up with are various 'properties' of an enum. Something along the lines of ...
enum as xx A = 5, B = 1, C = -1, D = 3 ? xx:A ? xx:B ? xx.max ? xx.min ? xx.range ? xx.last ? xx.first ? xx.count
And this should print as 5 1 5 -1 7 3 5 4
However, much more discussion is required before anything further like this will be implemented.