MOO-cows Mailing List Archive
suspend() and resume(INT, ERR)
As far as I can see, by testing, supplying a second arg of type ERR to
resume() results in the call to suspend in the task being resumed _raising_
that error, instead of _returning_ it.
1) Can some documentation of this feature please be added to the
programmers' manual's description of resume() - atm there's only a comment
that describes this in tasks.h, which isn't exactly obvious/sufficient
2) Why is this so? If we do resume(taskid, "fred"), why doesn't the call to
suspend() _raise_ "fred" instead of _returning_ it, too? What's so special
about TYPE_ERR? Consistency...
The Australian National University, Canberra.
"Computers in the future may weigh no more than 1.5 tons."
--Popular Mechanics, forecasting the relentless march of science, 1949
Subject Index |