[Q][browsing] standard/whisker/RB questions

Jon Hylands jon at huv.com
Wed May 1 11:21:59 UTC 2002


On 01 May 2002 13:07:21 +0200, Martin Drautzburg <martin.drautzburg at web.de>
wrote:

> (1) What is the best way to rename an instance variable. If I look up
>     the var refs first, I cannot change the methods because the new
>     variable name isn't there yet. If I change the variable name first
>     I can no longer lookup the var refs. I used to add the new name
>     first then fix the refs to the original name and then delete the
>     original var, but that feels clumsy.

Do the instVarRefs, leave the refs window open, rename the instance
variable, save the new class def, and then go to the open window and fix
each method in it.

Later,
Jon

--------------------------------------------------------------
   Jon Hylands      Jon at huv.com      http://www.huv.com/jon

  Project: Micro Seeker (Micro Autonomous Underwater Vehicle)
           http://www.huv.com



More information about the Squeak-dev mailing list