From: Vardhan Varma Date: 2002-03-18T14:50:13+09:00 Subject: RE: language addition: automatic 'new' But i thought method _have_ to start with [a-z] and not [A-Z] Integer() etc. must be doing some trick ( like calling an overloaded ctor (-; ) irb(main):119:0> def Blah ; end ; def blah ; end nil irb(main):120:0> Blah NameError: uninitialized constant Blah from (irb):120 irb(main):121:0> blah nil > -----Original Message----- > From: matz@ruby-lang.org [mailto:matz@ruby-lang.org] > Sent: Friday, March 15, 2002 15:19 > To: ruby-talk@ruby-lang.org > Subject: Re: language addition: automatic 'new' > > > Hi, > > In message "language addition: automatic 'new'" > on 02/03/15, Vardhan Varma writes: > > | I wrote my first >1K ruby program over the week, > |and it occured to me, it would be great if > | Klass(param) > | be converted to > | Klass.new(param) > | Automagically ... > > Hmm.. you are lazy enough to choose C(args) over C.new(args). > Don't worry, laziness is a virtue of a programmer. > > But I'm afraid it conflicts with already existing methods like > Integer(), String(), and Array(). > > matz. >