[ENH] Display := when pretty printing([sm][et][er][cd][approved])
Ned Konz
ned at bike-nomad.com
Fri Oct 17 23:02:05 UTC 2003
On Friday 17 October 2003 3:06 pm, Peter van Rooijen wrote:
> > Changing the shape of a class will cause it to be re-compiled, as will
>
> adding
>
> > a class variable.
>
> Ned,
>
> I mean, show me code. I want to see what you mean, because I thought there
> could not be a problem, including under recompilation if a class definition
> is changed. Just one example scenario where ambiguity would arise would
> already be helpful.
I'm not sure, but consider this:
suppose we have an old method:
SomeClass subclass: ClassA (instance variables x and y)
someMethod
^x_y "same as 'x := y'"
then we change the meaning of embedded underscores but don't re-compile. The
meaning of ClassA>>someMethod remains unchanged.
Now a parent of SomeClass adds an instance variable called 'x_y'. This causes
the hierarchy to be re-compiled, changing the meaning of ClassA>>someMethod.
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|