[Squeakland] [ANN] New updates and installers

Karl Ramberg karl.ramberg at chello.se
Sat Mar 20 13:03:35 PST 2004



Yoshiki Ohshima wrote:
> 
>   Hi, Karl,
> 
> > > - renaming variables is back! Thanks to Yoshiki and Scott this feature
> > > is now actually working and has therefor been re-enabled.
> >
> > Great. Cound renaming scripts also be fixed ?
> 
>   Ah, yes, I have a version that does the best effort to rename
> scripts.
> 
>   However, there is no 'perfect way' to rename scripts interactively.
> Suppose a script name (let's say "script1") is stored in a variable of
> an object (let's say "Obj1's var1").  And there are two objects (let's
> say Obj2 and Obj3) that implement 'script1'.  If we write a tile
> something like:
> 
>   Obj2 startScript: Obj1's var1.
>   Obj3 startScript: Obj1's var1.
> 
> then renaming Obj2's script1 cause a problem.  (One argument is that
> which problem is a good problem that let the user do exploratory stuff
> with minimal pain.  So, this may be ok.)
> 
>   I also wrote a non-interactive rename scripts function.  In this
> case, all reference to a symbol being renamed is changed at once, so
> the a working system stays working.

This sounds great. I find my self renaming scripts quite often and it's
tedious to 
change all references. 

karl


More information about the Squeakland mailing list