next up previous
Next: More major tasks Up: Small Tasks Previous: Signal handlers/exceptions

Sending messages to main

At present the main function cannot actually be sent messages. Should we instead of a main function have a main object (with a constructor with two parameters, for argc and argc) that is started as an active object. (P.S. can you pass `this' as a pointer to an active objects?). Alternatively we need a way to switch the main function over to processing a particular object, otherwise main() is a wasted process, as no data can be sent back to it, and it is not clear what should happen when main exits---should the whole program close down?

send comments or suggestions to

Click here for more information on UCL-CS.