Squeak 1.31, #rename: in Class

sqrmax at cvtci.com.ar sqrmax at cvtci.com.ar
Sat Mar 28 23:07:52 UTC 1998


I just upgraded from 1.23 to 1.31, saved all the changes and file them into 
1.31. And then, error! (But hey, this is Smalltalk, so let's debug it 
instead of calling tech support at 2am). The #rename: method in Class answers an 
error if you try to rename it to its name. Should it answer an error telling 
you that you tried to rename a class to an existing class which in fact is the 
class itself, or just rename itself to itself? Like, doing something as this:

newName = self name ifTrue: [^self].

This brings another question. How come the Change Sorter wrote down a 
rename-to-yourself? In fact, it also wrote down another rename that failed... odd.


More information about the Squeak-dev mailing list