On 1/9/02 1:22 PM, "Nathan Bubna" <[EMAIL PROTECTED]> wrote:
> hey guys, i've got a very odd bug for you.
Yay!
> here is a fairly simplified
> test case:
>
> #macro( nicenull $var )#if( "$!var" == "" )--#else$var#end#end
> #macro( foo $obj )#nicenull($obj)#end
> #macro( bar $blah )#foo($blah)#end
> #bar('hello')
> #foo('world')
>
> gives me this output:
> hello#nicenull
>
> that ain't right! weirder to me still is that:
>
No, it isn't.
> #macro( nicenull $var )#if( "$!var" == "" )--#else$var#end#end
> #macro( foo $obj )#nicenull($obj)#end
> #macro( bar $blah )#foo($blah)#end
> #foo('world')
>
> gives me this output:
> world
>
> which is right, but why #foo works when you don't call #bar first is a
> mystery to me. i'm working around this for now by letting inline VMs
> replace global ones, but i'd prefer to not be using a work-around.
>
> i suppose you'd also like to know that this only happens when
> velocimacro.permissions.allow.inline.local.scope = true
> and that i'm using velocity-1.2.
Thanks
>
> it's a pretty subtle bug, and i'm not at all familiar with the source so i
> can't reasonably take the time to track it down at present. but if you need
> any other info about my setup, just let me know.
>
I'll try and repeat - will msg you if I have any questions. Thx.
--
Geir Magnusson Jr. [EMAIL PROTECTED]
System and Software Consulting
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." - Benjamin Franklin
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>