Monday, November 08, 2010 at 12:06 AM.


on easyCall (routinename, paramlist) { <<4.2
	<<Launch a call to the routine in a separate thread.
		<<For an example of a call, see Create MCF command in system.menus.sharedMenus.MACS.
		<<Mon, Jan 20, 1997 at 9:55:04 AM by DW
			<<10/31/97 at 1:28:07 PM by DW -- moves from toys.threadCall
			<<10/12/99; 1:49:49 PM by PBS
				<<Makes sure paramlist is a list -- it must be a list, tables are not allowed.
				<<A change in 6.1 -- looping for tables -- makes this explicitness necessary.
	local (s = routinename + " (", param, firstparam = true);
	for param in list (paramlist) {
		if not firstparam {
			s = s + ", "};
		firstparam = false;
		s = s + "\"" + string.replaceAll (param, "\"", "\\\"") + "\""};
	s = s + ")";
	return (evaluateThread (s))}
<<bundle //test code
	<<easyCall ("dialog.threeway", {"Pick a word!", "oh", "the", "buzz"})

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.