From: Brian G. <br...@qu...> - 2003-07-31 01:14:06
|
>By "local functions", you mean local to a Context, right? I'd like to >see this stay around. The advantages of being able to add my own >functions w/o editing wm.properties are many, imho. I like the idea of being able to put Function objects in the context, but I don't particularly like how it works now. Instead of putFunction(), I like better the idea of putting Function objects into the context like variables: put("cos", new FunctionWrapper(mathObject, "cosine")); and then, instead of having Context look up in this special function map, just look up the name in the context. I don't really like that there are so many namespaces. Then, global functions can work that way too -- they get faulted into the context the first time you use them. The result is a flat namespace for variables, tools, functions, etc, and a general purpose "stuff-on-fault" mechanism for global hoosits. Or is that too much magic? -- Brian Goetz Quiotix Corporation br...@qu... Tel: 650-843-1300 Fax: 650-324-8032 http://www.quiotix.com |