[squeak-dev] computers too fast these days?
Tobias Pape
Das.Linux at gmx.de
Wed Aug 21 14:37:21 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 21.08.2013 um 15:30 schrieb John McKeon <p3anoman at gmail.com>:
On Monday, Bob Arning wrote:
> If you look at: WorldState>>triggerAlarmsBefore:, you see the claim:
>
> "Trigger all pending alarms that are to be executed before nowTime."
>
> when, in fact, it triggers one at most:
>
> triggered := OrderedCollection new.
> self lockAlarmsDuring: [:pending |
> (pending isEmpty not and: [pending first scheduledTime < nowTime])
> ifTrue: [triggered add: pending removeFirst]].
> triggered do: [:alarm | alarm value: nowTime].
>
> makes me want to
>
> Smalltalk destroyAllComments ;-)
>
> Cheers,
> Bob
Whoops! That ifTrue: should be whileTrue:
John
I'll fix that.
Best
-Tobias
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
iEYEARECAAYFAlIU0KYACgkQcPVIrP6PLKuifQCfZtYT5e7Nr7m++xUN/urjBvFc
1CAAoIRC1v1dC/Gt2Zcrj8H4l7fGfIjk
=71U+
-----END PGP SIGNATURE-----
More information about the Squeak-dev
mailing list
|