And to be clear, that means the temporary variable is getting used where the programmer probably thought the instance variable was being used. This is a common source of bugs, so it's usually best to avoid naming collisions between temps and ivars, and that's why the system is warning you about it.
It's a very thoughtful system:) --Casey > On Jun 2, 2014, at 9:35 AM, Tobias Pape <das.li...@gmx.de> wrote: > > Hi Joe > > >> On 02.06.2014, at 18:17, Joseph J Alotta <joseph.alo...@gmail.com> wrote: >> >> I am getting these messages on my Transcript. >> >> What does "is shadowed" mean? > > 'shadowed' means that you use a temporary variable > 'sortbybank' in House>>#report4a when somewhere in House or its superclasses > is there is an instance variable of the same name. > (same for array). > > Best > -Tobias > >> Sincerely, >> >> Joe. >> >> >> >> >> >> House>>report4a(sortbyrank is shadowed) >> House>>report4a(sortbyrank is shadowed) >> House>>report4a(sortbyrank is shadowed) >> House>>report4a(sortbyrank is shadowed) >> House>>report4a(sortbyrank is shadowed) >> House>>report4a(sortbyrank is shadowed) >> House>>loadSecurities:(array is shadowed) >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners