[Newbies] Odd Transcript message

Lynn Fogwell fogwell at bellsouth.net
Tue Nov 3 22:53:00 UTC 2009

That was it.  I had a block variable 'name' and the class also  
inherits an instance variable 'name'

Lynn F.

On Nov 3, 2009, at 1:47 PM, Yoshiki Ohshima wrote:

At Tue, 3 Nov 2009 10:53:40 -0500,
Lynn Fogwell wrote:
> Hi,
> Whenever I compile a particular method, the transcript displays the
> following line:
> IdentityManager class >> populateDevelopersTable (name is shadowed)
> So, it names the class and method I just compiled and then states
> that it is shadowed.
> What is 'shadowing' and how did I activate it for this particular
> method?

   The most likely senario is that the IdentityManager class has an
instance variable called 'name' and the populateDevelopersTable method
declares a temporary variable called 'name' also.  An instance
variable is shadowed, or hidden, by an inner-scope variable with the
same name.

   Yes, because it happens to be "name", the warning can be read
differently ^^;

-- Yoshiki
Beginners mailing list
Beginners at lists.squeakfoundation.org

More information about the Beginners mailing list