Jose Alberto Fernandez wrote:
> 
> Fair enough! I need to familiarize me with the code first though.
> 
> Jose Alberto

Hi Jose Alberto,

please look at my comment in this thread and to the "[PROPOSAL] syntax update in 
Velocimacros" in this list.

I think we should join up to patch VL:
  1. add a ASTMacro node to the parser.
     The signature of a ASTMacro is a $reference() without dots
     indicating its not accessing a method, and with brakets
     indicating it's not accessing the implicit toString method.
  2. add a #define directive (to not clash with the #macro one)
     that populates the context with a Macro object which 
     takes an array of parameters during ASTMacro merging.
  3. Add a ContextFactory class (should be then integrated in
     Runtime.java) which loads the global and local #define 
     templates (configurable) and clones the local context upon 
     each request (local contexts come to life by taking a cloned
     global one and merging-in the local #define templates).

This would solve the globality and life-span of macro's (now
called defines!).

Jose, write me directly to coordinate the implementation. I'm
going to first try to solve the introspection issue not finding
some methods...
[OT] Jos�, si tu quieres podemos hablar en espa�ol?


Anyone else interested on this pattern? Please vote for it!

:) Christoph

Reply via email to