[341] in Coldmud discussion meeting
re: read()
daemon@ATHENA.MIT.EDU (Thu Jun 2 21:58:24 1994
)
From: deforest@netcom.com (Robert de Forest)
To: coldstuff@MIT.EDU
Date: Thu, 2 Jun 1994 18:52:49 -0700 (PDT)
The functionality of MOOs read() function can be written in-db. It has been
done more than one way, though it's always the same concept. Suspending tasks
can also be done in-db by means of a task scheduler. Both of these rely on a
callback mechanism, which is inconvienient from a coding point of view, but
made the server simpler.
I am under the impression that a future release of the server will have both
cooperative and preemptive multitasking. This will take care of the pain of
writing and using a task scheduler. Since read() is simply a matter of
re-directing input to a buffer until N lines are read or some other condition
is met, I doubt writing a read() builtin is on the top of the request list.
We thank you for your interest. :)
Crag / Robert de Forest
--
"Mr. Tater, I think I have a punishment for you that is fair, just, and
clever. Or maybe just fairly clever."
-- King Yakko of Anvilania.