From: Mark Hubbart Date: 2004-11-05T07:00:35+09:00 Subject: Re: Receiving blocks in Proc? On Fri, 5 Nov 2004 06:37:47 +0900, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Receiving blocks in Proc?" > on Fri, 5 Nov 2004 06:23:43 +0900, james.cromwell@gmail.com (James) writes: > > |p = Proc.new { |*args,&block| } > > > | > |produces syntax error > | > |p = Proc.new { |*args,&block| } > |----------------------^ > | > |It appears that Proc objects cannot receive blocks? > > Until 1.9, yes. Will it eventually be possible to pass the block when using the bracket-call syntax? ie: block[...] {|*args| ...} Right now it gives a parse error. Or would that make it too difficult for the parser? thanks, Mark