On Mon, 19 Apr 2004 20:23:20 +0900, Dan Doel wrote:
> I must admit, I don't understand what you're doing exactly either...
> 
> How is your code different from:
> 
>   def mode2(&blk)
>     mode(&blk)
>   end
> 

My code can take an optional block. Your above code
must be supplied a block.


> Or for that matter, how is:
> 
>   mode2 do
>     # stuff
>   end
> 
> different from:
> 
>   mode do
>     #stuff
>   end
> 

No difference there.

However being able to not supply a block is what interest me

mode2   # OK

mode  # BOOM



HTH,

--
Simon Strandgaard