From: Pit Capitain Date: 2007-01-19T05:54:55+09:00 Subject: Re: auto assign arguments? David Chelimsky schrieb: > I find that I do a lot of this: > > def initialize(thing, other) > @thing = thing > @other = other > end > > One thing I'd love to see in a future version of ruby is this; > > def initialize(@thing, @other) > end Not that I would do it, but: class C define_method :initialize do |@x, @y| end end c = C.new 1, 2 p c # => # I think Matz is planning to deprecate this feature. Regards, Pit