Paulo Gaspar wrote:
> 
> For me, that behavior sounds perfect.
> 
> However, I must confess that the reverse would also be ok.
> 

Reverse is problematic - it can be done, but would require a bit more
entanglement and complexity (I think), and there doesn't seem to be any
real benefit, other than a kind of intellectual completeness. The
current way, rendering the original reference passed in rather than the
arg is more of an artificial side effect, I think.

> The way I use it, when a Velocity reference/var gets rendered with the
> dollar $ign and all it is just because I am doing something wrong.
> =:o)

In general no - I think people might want to use the '$' for output ( 
'$ale' or 'Micro$oft' )

but yes, when passing a reference into a VM...

#foo( $reference )

I can't imagine that one would do this in order to get '$reference'
rendered into the stream.  If you wanted that, 

#foo( '$reference' )

As I said, I think of it as a side effect, and I now think it was a
mistake made in my zeal for 100% backwards compatibility.
 
> BTW, please tell me a couple of files involved in this issue. I would
> like to have a starting point to better understand this bit of Velocity.

The place to look is VMProxyArg.  Look for the comments that
specifically note this issue :)

geir

-- 
Geir Magnusson Jr.                           [EMAIL PROTECTED]
System and Software Consulting
Developing for the web?  See http://jakarta.apache.org/velocity/
You have a genius for suggesting things I've come a cropper with!

Reply via email to