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

enum and named sets


Would it be useful or possible to allow the naming of enum sets such that they could be referenced by that name collectively without having to generate a special class with just a public enum. This could be very useful I think.

Or maybe there is already a simple way to do this!

Such that

enum this_set_name  none,fast, slow,red,green

this allowing things like
    dim setcounter[] as new integer[5]
    inc setcounter[none]
    inc setcounter[green]

or

    for each xx as variant in this_set_name
        print setcounter[xx]
    next

--
~~~~ Brian

Attachment: OpenPGP_0x78BFB26402F48419.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


Follow-Ups:
Re: enum and named setsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: enum and named setsJussi Lahtinen <jussi.lahtinen@xxxxxxxxx>