hey guys,  i've got a very odd bug for you.  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:

#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.

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.

Thanks,
Nathan Bubna
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to