Subj : Re: Creating classes/namespaces on the fly from existing functions? To : Shanti Rao From : Digital Man Date : Tue Jan 11 2005 05:48 pm Re: Re: Creating classes/namespaces on the fly from existing functions? By: Shanti Rao to netscape.public.mozilla.jseng on Tue Jan 11 2005 02:46 pm > PS. Straw man: what about a 'library' as a separate thread with a COM-like > messaging interface? A synchronous function call would send a message and wa > for a reply. Or not wait. It invokes buzzwords like grid computing and > transaction processing. It's funny you would mention that. I just so happen to have created a variation of the JSshell load() function that optionally executes a script in a separate (background) thread, and communicates with the parent thread using an instance of a bi-directional Queue class I created for this purpose. The details on the usage and the Queue class can be found here: http://synchro.net/docs/jsobjs.html Source code can be found here: http://cvs.synchro.net/cgi-bin/viewcvs.cgi/src/sbbs3/js_global.c http://cvs.synchro.net/cgi-bin/viewcvs.cgi/src/sbbs3/js_queue.c digital man Snapple "Real Fact" #177: The first sailing boats were built in Egypt. .