This may seem like a silly question, but here goes-
I'm trying to add some ability to the Squeak IRC client to keep me from getting kicked off when I'm not around. I'd like to run some IRC command perhaps every 5 minutes (whois rev).
I'm looking for the Smalltalk equivalent of C's sleep(n) function. Something that will simply wait for a number of seconds without the ugliness of an always true #whileTrue: loop.
Is there one?
Aaron
Aaron Reichow :: "In essence, Smalltalk is a programming Twin Ports ACM Vice President :: language focused on human beings rather http://www.d.umn.edu/~reic0024/ :: than the computer." - Alan Knight
On Thursday 01 February 2001 09:57, Aaron J Reichow wrote:
I'm looking for the Smalltalk equivalent of C's sleep(n) function. Something that will simply wait for a number of seconds without the ugliness of an always true #whileTrue: loop.
| delay | delay _ Delay forSeconds: 5. [ delay wait. self doSomething ] repeat.
Ned Konz wrote:
On Thursday 01 February 2001 09:57, Aaron J Reichow wrote:
I'm looking for the Smalltalk equivalent of C's sleep(n) function. Something that will simply wait for a number of seconds without the ugliness of an always true #whileTrue: loop.
| delay | delay _ Delay forSeconds: 5. [ delay wait. self doSomething ] repeat.
-- Ned Konz currently: Stanwood, WA email: ned@bike-nomad.com homepage: http://bike-nomad.com
In morphic you also have the step and stepTime possibility step self doSomething
stepTime ^ 5 minutes asMillisecs
Karl
Pater, Ned, Karl- thanks!
Aaron Reichow :: "In essence, Smalltalk is a programming Twin Ports ACM Vice President :: language focused on human beings rather http://www.d.umn.edu/~reic0024/ :: than the computer." - Alan Knight
squeak-dev@lists.squeakfoundation.org