From: dblack@... Date: 2006-03-09T01:11:24+09:00 Subject: Re: newbie question about scope, variables, declarations of variables and option strict (as in perl) Hi -- On Thu, 9 Mar 2006, gwtmp01@mac.com wrote: > > On Mar 8, 2006, at 10:38 AM, dblack@wobblini.net wrote: >> >> Weird. I guess Logger does something bizarre in its constructor. > > At the top level 'self' references the same object in the file scope > and in the method scope (really private instance methods of the top-level > object). Why then is it puzzling that the instance variables are > accessible from either place? See my last message -- for some reason I projected a class definition body onto the example when I read it. David -- David A. Black (dblack@wobblini.net) Ruby Power and Light, LLC (http://www.rubypowerandlight.com) "Ruby for Rails" chapters now available from Manning Early Access Program! http://www.manning.com/books/black