>>>>> "M" == Mike  <mike / lepton.fr> writes:

M> I don't understand. Blocks have arity, their arguments are not independant.

 [1, 2].each {|x, y| }

 Now, do the same with a def

M> I'd like to be able to define block arguments like method arguments; to
M> have a kind of block that is more method like. 

 Then define a new block form which is different than the actaul form.

M> This is not what I excepted. Are there as many differences between
M> blocks and methods? 

 yes,

M> I see blocks as code with the creator's binding and methods as code with
M> the receiver's binding. Blocks and methods are very similar for
M> me.

 Perhaps the ruby interpreter don't see it like you, I don't know :-)


Guy Decoux