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

Scott Wallace scott.wallace at squeakland.org
Wed May 1 17:52:41 UTC 2002


At 1:07 PM +0200 5/1/02, Martin Drautzburg wrote:

>(1) What is the best way to rename an instance variable....
>
>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.

What you describe may feel clumsy, but it remains the "standard" way 
to rename an instance variable in Squeak, unless you use the RB.

Most people make their peace with this bit of awkwardness pretty quickly.

There is another technique, which is "dangerous" but which can be 
very effective and *much* faster, and which requires that you 
*really* know what you're doing:  file out the class, then manually 
edit the fileout, judiciously using global search-and-replace, then 
file the massaged code back in.  This is sinful, but can be very 
expeditious.

   -- Scott



More information about the Squeak-dev mailing list