From: Daniel DeLorme Date: 2007-06-08T00:59:39+09:00 Subject: Re: Syntax suggestion Phrogz wrote: > On Jun 7, 12:29 am, Joel VanderWerf wrote: >> class Foo >> define_method :initialize do |@x,@y,@z| end >> end >> >> p Foo.new(1,2,3) # ==> # >> >> You might want to verify that this construct is allowed in 1.9 before >> using it heavily. ISTR it is deprecated. > > Can someone confirm or deny that this is deprecated in 1.9? yep, deprecated: $ ruby1.9 -e ' class Foo define_method(:initialize) do |@x,@y,@z| end end' formal argument cannot be an instance variable define_method(:initialize) do |@x,@y,@z| end Daniel