Bug? WindowsVM or other problem?
Jimmie Houchin
jhouchin at texoma.net
Wed Feb 6 16:07:15 UTC 2002
Tim Rowledge wrote:
[snip]
> Nope - it's one of those things where the OS has an effect. 'beep' is
> done via a primitive that is going t be subtly different on each OS. On
> MacOS it is evidently a synchronous call, whereas it seems that on 'doze
> it is asynchronous - ie the prim returns virtually immediately and gets
> called again almost immediately after that.
>
> Change it to:-
> 10 timesRepeat:[ Smalltalk beep. (Delay forSeconds:1) wait]
> and it will almost certainly do what you expect.
Yes. :)
> Trying
> 10000000 timeRepeat: [ Smalltalk beep]
> might also be interesting. My guess is that it will make a very long
> beeping noise rather than a lot of beeps. Let us know...
I started at 100 and worked up.
At 1000 it beeped 4 times.
At 10000 it beeped 26 times intermittently due to OS interuptions.
I stopped there. :)
Thanks for the help.
Jimmie Houchin
More information about the Squeak-dev
mailing list
|