On Sun, 4 Nov 2001, Bob Sidebotham wrote: > So a Proc object is a little extra wrapping around a bare block in order > to make the block more generally available? And the method-with-block > syntax plus yield is really intended to make things more efficient by > restricting the ability to call the block to just the invoked method? So > we're really talking the difference between static vs. dynamic blocks? although there's a difference between a block not attached to a method-call and one that is, there is no semantic difference between the latter and a Proc object in the & slot. Things can get similarly confused if one talks about the internal proxy-classes, which also have no effect on semantics (they modularize "private", "protected", "include" out of ordinary classes, but you need not know they exist) ________________________________________________________________ Mathieu Bouchard http://hostname.2y.net/~matju