[etoys-dev] Variables in viewer broken

karl ramberg karlramberg at gmail.com
Sun Jun 6 13:04:55 EDT 2010


On Sun, Jun 6, 2010 at 6:22 PM, K. K. Subramaniam <kksubbu.ml at gmail.com>wrote:

> On Sunday 06 Jun 2010 7:43:38 pm karl ramberg wrote:
> > Hi,
> > could you look at this bug, Subbu ?
> > The issue is that slotInfo is used for instance variables, but here all
> > getter slots are added and is displayed as variables.
> I am unable to reproduce it in Etoys 4.1-2378 with Etoys-kfr.16.mcz loaded.
> How do I get to a version where I can reproduce it?
>
> Subbu
>
Hi,
Bug was in

Player>>noteDecimalPlaces: aNumber forGetter: aGetter
"Note the given preference of decimal places for the given getter"
| slotInfo |

        "<Begin trouble>"
slotInfo _ self slotInfoAt: (Utilities inherentSelectorForGetter: aGetter).
slotInfo floatPrecision: (Utilities floatPrecisionForDecimalPlaces:
aNumber).
        "</End Trouble>"

The method Player>>slotInfoAt: has a bad side effect that it does not just
report the slotInfo, it creates slotInfo.
I think I figured out the problem in Etoys-kfr-18

Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakland.org/pipermail/etoys-dev/attachments/20100606/09c74362/attachment.html


More information about the etoys-dev mailing list