From: timsuth@... (Tim Sutherland) Date: 2001-12-28T09:34:26+09:00 Subject: [ruby-talk:29496] Re: Can't yield from Proc In article , ts wrote: >>>>>> "T" == Tim Sutherland writes: [...] >T> The alternative doesn't even make it past the parser: >T> double = Proc.new { |x, &block| block.call(x*2) } >-> SyntaxError: compile error > > Well, here you make a confusion between the definition of a method > (i.e. def tt(a, &block) ... end) and the parameters given to the block. > > |a, b| must be seen as a multi-assignement Thanks, that rationalises the behaviour nicely. I suppose in a language which provides its own OO support, there is less need for functions which return functions. >T> differences. (Given Matz is Japanese I shall not complain too loudly about >T> having to type "initialize" instead of "initialise" ;) > > see [ruby-talk:01566] > > http://www.ruby-talk.com/1566 For me, it's not because I think one form or the other is more "correct". I just don't like the letter 'z'. -- He was as tall as a six-foot-three-inch tree. (Jack Bross, Chevy Chase)