From: Christian Neukirchen Date: 2005-08-07T18:11:38+09:00 Subject: Re: new block notation (was: Re: ruby-dev summary 26468-26661) Stefan Lang writes: > On Saturday 06 August 2005 15:14, Gavin Kistner wrote: >> Blocks are associated with the instance that is the receiver of the >> � method to which they are passed. 'self' and instance variables >> refer to that instance. > > Am I misunderstanding you completely? > > self and instance variables in a block should refer to the > context in which the block is defined, not to the receiving > instance. Counterexample: instance_eval... I don't think you can make a-priori any assumptions about the non-local binding of the block. (The *local* binding is the lexical binding, though.) > Stefan -- Christian Neukirchen http://chneukirchen.org