[ENH] shiffmanTimeout-brp( was: timing out a method
call [su][cd][sm])
Stephan Rudlof
sr at evolgo.de
Thu Oct 21 18:28:21 UTC 2004
pinkney_b at aircom.co.za wrote:
> Ok,
>
> Here is my port of the Shiffman timeout to Squeak 3.7/3.8.
>
> The Squeak (ANSI?) exception library is a bit different and Squeak has the
> Chronology library to specify durations.
>
> I took the liberty of renaming the method to read nicely.
>
> Three SUnit tests included.
>
> Load and try:
>
> [ 3 + 4 ] duration: 1 minute timeoutDo: [ 6 ]. "Answers 6"
Shouldn't this answer 7 ?
Greetings
Stephan
>
> [ 50000 factorial ] duration: 1 minute timeoutDo: [ 9 ]. "Answers 9"
>
>
> Cheers
>
> Brent
>
> --------------------------------------------------------------------
> mail2web - Check your email from the web at
> http://mail2web.com/ .
>
>
>
> ------------------------------------------------------------------------
>
>
--
Stephan Rudlof (sr at evolgo.de)
"Genius doesn't work on an assembly line basis.
You can't simply say, 'Today I will be brilliant.'"
-- Kirk, "The Ultimate Computer", stardate 4731.3
More information about the Squeak-dev
mailing list
|