From: Bharat Ruparel Date: 2008-03-04T08:37:42+09:00 Subject: Re: Question on the Ruby Programming Language Book > In general, Ruby programmers don't create enumerated objects. There's > rarely a need for them. The solution you demonstrated above is looks > like an example of how one might go about it if one really wanted to > emulate C++-style enumerations. Generally you would just use symbols, > though. Thank you. On one hand, I have a high regard for David Flanagan and Matz. On the other hand, I must admit that I am a bit disappointed with their selection of examples though. "Technicallly," the book is mostly quite correct, you just have to stretch your brain-cells a bit for more realistic applications. C++ was a long time ago, but thanks for the reminder, it does look a bit like the past coming back to haunt me. Regards, Bharat -- Posted via http://www.ruby-forum.com/.