Sebastian Hungerecker
1/17/2008 6:55:00 PM
Ed Loyot wrote:
> # Why does this fail?
> 0.upto(4) &proc2
It has to be 0.upto(4,&proc2) or 0.upto 4, &proc2
In other words: syntax-wise a &-proc is treated like just another argument
(although it has to come last in the argument list), not like a block.
HTH,
Sebastian
--
Jabber: sepp2k@jabber.org
ICQ: 205544826