[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squeak-dev
Subject:    Squeak 1.31, #rename: in Class
From:       sqrmax () cvtci ! com ! ar
Date:       1998-03-28 23:07:52
[Download RAW message or body]

Hi.

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.

Andres.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic