PROPOSAL: Abstract enums (version 2)

Howard Lovatt howard.lovatt at
Thu May 7 22:51:17 PDT 2009


I have had similar issues with enum as those described by Bruce,
namely I want to use enum as a means of generating a fixed set of
instances of a class. This is why I want any class to be the super
class and would also like to have generic parameters. Further it would
be nice if you could make a singleton by having a enum with *no*
members. These facilities exist in Scala, though not through an enum
construct, and I have found them most useful.

  -- Howard.

More information about the coin-dev mailing list