From: dblack@... Date: 2006-08-02T10:06:26+09:00 Subject: Re: I thought this was the one that worked? Hi -- On Wed, 2 Aug 2006, dblack@wobblini.net wrote: > Hi -- > > On Wed, 2 Aug 2006, Just Another Victim of the Ambient Morality wrote: > >> # this is the sample code you provided... >> >> a = 10 >> # the block is defined here but "sent" to the "each" method... >> [1, 2, 3].each {|x| puts x * a } > > I would say: control passes to the block. The block itself is not > represented by an object (which I think is the only quasi-objective > [ha ha] definition of "sent") in any scope other than the one in which > it was created. (Nor, I should add, in the one in which it was created.) David -- http://www.rubypowerandlight.com => Ruby/Rails training & consultancy ----> SEE SPECIAL DEAL FOR RUBY/RAILS USERS GROUPS! <----- http://dablog.rubypal.com => D[avid ]A[. ]B[lack's][ Web]log http://www.manning.com/black => book, Ruby for Rails http://www.rubycentral.org => Ruby Central, Inc.