On Mon, 2 Oct 2000, 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.

Only allow them to be defined once. So that core directives
could not be overridden. The direcitves #if and #macro already
exist so attempts to define them again would fail. That
failure could be logged. So core directives would be safe,
and if someone tried to define a macro with the same name
twice only the first one would count. I'm working
on a syntax checker a la 'perl -c' to check the validity
of a template, so that could be another check: multiple
definitions of macros.

jvz.

-- 

Jason van Zyl
[EMAIL PROTECTED]

Reply via email to