PROPOSAL: Abstract enums (version 2)

Tim Peierls tim at peierls.net
Fri May 8 04:34:30 PDT 2009


On Fri, May 8, 2009 at 1:51 AM, Howard Lovatt <howard.lovatt at iee.org> wrote:

> Further it would be nice if you could make a singleton by having a enum
> with *no* members.


I don't understand what you mean here. A one element enum makes a great
singleton. (Effective Java 2nd ed., Item 3.)

--tim



More information about the coin-dev mailing list