From: gedb@... (Ged) Date: 2003-09-16T18:50:48+09:00 Subject: Re: Implementing the tape safe enum pattern in Ruby. > Yes, this is possible in Ruby. See: > http://cvs.sf.net/cgi-bin/viewcvs.cgi/rubycollections/rubycollections/rbc/enum.rb?rev=1.7 > http://cvs.sf.net/cgi-bin/viewcvs.cgi/excruby/excruby/excruby/enum_wrapper.hpp?rev=1.2 > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/79041 > Paul, Thanks for those. The C++ example is useful too. > > Is an equivalent possible in Ruby, or is it irrelevant because Ruby is > > not strongly typed? > > Ruby is strongly typed. It is not statically typed. See > [ruby-talk:64625]. > > Paul Thanks especially for this distinction. It's helping to understand things better.