Wow... I didn't even know you can do that.

Richo

On Tue, Jun 22, 2010 at 1:27 PM, Bert Freudenberg <bert@freudenbergs.de> wrote:
Maybe you were playing with translations, or an inspector, or something. It's as easy as 

SketchMorph defaultNameStemForInstances at: 1 put: $S

and if the string gets passed around one can modify it.

- Bert -

On 22.06.2010, at 18:04, Ricardo Moran wrote:

Do you have any idea how did this happened?

Richo

On Tue, Jun 22, 2010 at 12:21 PM, Bert Freudenberg <bert@freudenbergs.de> wrote:
On 22.06.2010, at 16:52, Ricardo Moran wrote:

> It seemed to be a problem with my image. I see the code
>
> SketchMorph class>>#defaultNameStemForInstances
>       ^ 'Sketch' translatedNoop
>
> but if I print "SketchMorph defaultNameStemForInstances" I get 'sketch'... really weird...
> I recompiled the method with the same source and the problem got fixed, but I have no idea why it didn't work before.

It's possible to modify literals ... which leads to mysterious behavior.

- Bert -


_______________________________________________
etoys-dev mailing list
etoys-dev@squeakland.org
http://lists.squeakland.org/mailman/listinfo/etoys-dev




_______________________________________________
etoys-dev mailing list
etoys-dev@squeakland.org
http://lists.squeakland.org/mailman/listinfo/etoys-dev