On Wed, 2 Aug 2006, Chad Perrin wrote:

> On Wed, Aug 02, 2006 at 05:28:40AM +0900, ara.t.howard / noaa.gov wrote:
>> On Wed, 2 Aug 2006, Chad Perrin wrote:
>>>
>>> It's not lexical scoping if that "a" variable is separate from the "a"
>>> variable in the enclosing scope.
>>
>> yes.  it is, because there is no 'a' in the enclosing dynamic scope:
>>
>>     harp:~ > cat a.rb
>>     a = 42
>
> If there's no "a", then perhaps you can tell me what the hell that is.

it's not that there is no 'a', it's that there is no enclosing scope.  the
beginning of the 'def' introduces a new scope that is not 'contained' by the
previous one.  this is basic ruby.

-a
-- 
we can never obtain peace in the outer world until we make peace with
ourselves.
- h.h. the 14th dali lama