[BUG] Monticello - loading class changes
Chris Cunningham
csque0 at lycos.com
Mon Dec 8 21:14:39 UTC 2003
>I'm not used to Squeak complaining the instant I add the instance
>variable, only the next time I modify the method. Has this changed?
>
Actually, the problem isn't with a temporary variable in a method, but with block variables. As an example of this, create the following two methods in a class of your choice:
test1
| var2 |
var2 _ 1.
var2 _ var2 + var2
and
test2
1 to: 2 do: [:var2| var2 ]
Once these are created, then add the instance variable var2 to the class. You will get a box talking about the method test2 claiming htat var2 is already defined; you will not receive any messages about test1 until you do back in and save the method again.
____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005
More information about the Squeak-dev
mailing list
|