From: Nathan Smith Date: 2006-09-16T03:19:04+09:00 Subject: Re: not sure what is wrong. strange error On Sat, 16 Sep 2006, Vincent Fourmond wrote: > > It does not make any sense. i have a overloaded constructor. i am not > > sure why it does not call teh overloaded constructor > > There is no such thing as overloading in Ruby. Your second definition > is cancelling the first one. Try to run this with ruby -w, and you'll > get a warning... > > Ruby is not C++ ;-) ! > > Vince It's too bad Ruby does not allow overloaded methods. It makes more sense, IMHO, in this case to have two constructors, each of which perform two different 'functions', rather than having if/else/case statements inside the constructor with default arguments. Nate