From: Brian G. <br...@qu...> - 2003-07-31 01:17:14
|
>I'm busily refactoring the function stuff and I suddenly realized that all >I had to do was make FunctionCall implement Macro and everything becomes a >lot simpler. The FunctionCall.eval() takes care of almost everything, so >Context.internalGet() becomes real simple. See below. I like this, although I think it can be made even more general, see my other reply on this thread. Basically, I'd like to see functions, variables, and tools all being things in the context, and the lazy load-on-demand can be used to fault in global tools or functions. >The only real function code left in Context is keeping track of local >functions. I'm wondering if anybody even cares about local >functions. They could be pretty powerful but maybe it's not worth >it. We'll have to discuss this later. I think a convenience method for put(String name, Function f) would help here. -- Brian Goetz Quiotix Corporation br...@qu... Tel: 650-843-1300 Fax: 650-324-8032 http://www.quiotix.com |