From: Dat Nguyen Date: 2000-03-16T12:21:08-05:00 Subject: [ruby-talk:01906] Re: Enumerations and all that. I wonder if attempt to program in Ruby pascal alike (or for that matter any other language alike) is worthwhile. Overtime people with other languages background would want to introduce flavors of their own. For instance I innocently tried to implement matrix multiplication using nested loops like I do in C, Tcl, Python, etc. Ruby may have its own idioms of doing things, not only at low level but also conceptually like patterns. The gurus in Japan may have tons of such wisdoms. Dat >From: Hugh Sasse Staff Elec Eng >Reply-To: ruby-talk@netlab.co.jp >To: ruby-talk@netlab.co.jp (ruby-talk ML) >Subject: [ruby-talk:01900] Enumerations and all that. >Date: Thu, 16 Mar 2000 16:37:14 +0000 (GMT) > >Thank you to the people who responded to my questions about Enumerated >types. I have put something together that does what I want now, and have >some code to (not rigorously) test it. It may have major weaknesses >that I have not seen, so I would welcome comments on it. >The classes are in: > >http://www.eng.dmu.ac.uk/~hgs/ruby/Enumeration.rb > >and the rudimentary test code is in > >http://www.eng.dmu.ac.uk/~hgs/ruby/Enumeration_test.rb > >I hope this will be a fundation on which others can build, but I >doubt it is that solid :-) > > Hugh > hgs@dmu.ac.uk > > > > ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com