From: Dossy Date: 2002-06-13T00:14:28+09:00 Subject: Re: ruby-dev summary 17252-17356 On 2002.06.13, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: ruby-dev summary 17252-17356" > on 02/06/12, Dossy writes: > > |Or, how about: > | > |5.times do(a) a=gets; print a end > | > |To me, that's the least surprise. It makes "a" look like a > |defined parameter of the do "method" so to speak. > > Unfortunately, yacc doesn't like this rule. It causes conflicts. What if we could do this: 5.times.do(a) a=gets; print a end ^? Or can you not name methods that shadow keywords? -- Dossy -- Dossy Shiobara mail: dossy@panoptic.com Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70)