From: Robert Dober Date: 2007-01-19T22:43:23+09:00 Subject: Re: auto assign arguments? ------=_Part_158040_8448256.1169214201276 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 1/19/07, Yukihiro Matsumoto wrote: > > Hi, > > In message "Re: auto assign arguments?" > on Fri, 19 Jan 2007 22:15:33 +0900, "Robert Dober" < > robert.dober@gmail.com> writes: > |Right now you can *already* write code like this > | > |class B > | attr_reader :a > | define_method :initialize do |@a| ; end > |end > > |I feel that this is worth another shot, maybe Matz could tell us to stop > |working on this if he really does not like it. > |It seems reasonable to assume that the reasons he had to reject the RCR > do > |not exist anymore or that he has changed his mind, no? > > I haven't changed my mind (yet). And I even disallowed above code in > 1.9. Block parameters should only be local variables (and they are > effective only inside the block). > > matz. That is your decision of course and by disallowing the above code we are much more consistent again. (so I feel it is a good decision too ;) Personally I would have preferred that both were allowed but it is not really a big deal. In that context it would be nonsense to file an RCR as mentioned above. Thanx for clarifying. Cheers Robert P.S. I should definitely get ruby1.9 fast and run my code on it before posting it :( Sorry folks R. -- "The best way to predict the future is to invent it." - Alan Kay ------=_Part_158040_8448256.1169214201276--