Wow... I didn't even know you can do that.
Maybe you were playing with translations, or an inspector, or something. It's as easy asSketchMorph defaultNameStemForInstances at: 1 put: $Sand 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?RichoOn 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's possible to modify literals ... which leads to mysterious behavior.
> 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.
- 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