From: Tim Hunter Date: 2004-07-07T06:12:42+09:00 Subject: Re: Enumeration (Ala Pascal, C, Ada) James B Crigler wrote: > I put together the code that follows in an attempt to emulate (in a > crude way) the "enumeration" types of Ada, C, Pascal, etc. > I don't know if this is exactly what you're looking for, but check out http://addlib.rubyforge.org/wiki/wiki.pl?EnumClass. This is a class that is to C enums what Struct is to C structures. I've offered it for inclusion to the addlib project, but if you think it will be useful you can get it now by copy'n'pasting the code from the wiki or I'll be glad to email you a copy.