[Cuis-dev] Cuis Smalltalk Issues
Hilaire Fernandes
hilaire at drgeo.eu
Mon Nov 15 12:25:19 PST 2021
Hi Mark,
You played with your toy and you break it :) It happens, even to
experimented Smalltalkers. But as suggested by Nicola, you can save your
important code in package. Or before doing a risky change, you can just
save the image.
Changing the stepTime at such low value can consume a lot of resources.
Were you trying to turn the MorphClock as an automatic Swiss watch?
I live nearby Geneva, so I suggest you the following changes:
MorphClock>>stepTime
^ 100
and
MorphClock>>step
../..
secondHand rotationDegrees: (time second + (time nanoSecond *
1.0e-9))* 6.
Hilaire
Le 13/11/2021 à 23:17, Mark via Cuis-dev a écrit :
> ISSUE #1
>
> I got to the clock morph chapter
> (https://cuis-smalltalk.github.io/TheCuisBook/A-Clock-Morph.html
> <https://cuis-smalltalk.github.io/TheCuisBook/A-Clock-Morph.html>) and
> got the clock running.
>
> Then, I started playing with the #stepTime values — just for fun. I
> set it to values like “16” and “66.7” and then, suddenly, the whole
> environment froze.
>
--
GNU Dr. Geo
http://drgeo.eu
http://blog.drgeo.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20211115/a6ab4c91/attachment.htm>
More information about the Cuis-dev
mailing list