Jon Stevens wrote:
> 
> What happens if I do this:
> 
> #macro (macro $foo)
> yadda yadda yadda
> #end
> 
> or
> 
> #macro (if $foo)
> yadda yadda yadda
> #end
> 
> 
> We need to consider these things if we are going to allow dynamic
> directives.

Seems pretty straightforward. I would propose:

1) if you try to define a VM that has the same name as a 'regular' VTL
directive, its an error. 'Regular' directives are anything built into
the VTL : currently #set, #include, #foreach, #if, #else, #end and
possibly #macro.  The VM Factory can check at runtime with the directive
hash ( if that model survives the #foo($i $j) grammar change) so that
won't be anything more to maintain : if a regular directive is added,
the VM Factory will respect it.

2) if you try to redefine a VM, I would guess the default behavior is an
error, and maybe overridable via a property.

geir


-- 
Geir Magnusson Jr.                                    
[EMAIL PROTECTED]
"Congress shall make no law abridging ...  the freedom of sXXXch, ... or
the
right of the people peaceably to XXXemble, and to peXXXion the
government for 
a redress of grievances." -even the Founding Fathers needed content
filters

Reply via email to