You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2004/07/27 14:25:08 UTC

DO NOT REPLY [Bug 30343] - recursion and loop

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30343>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30343

recursion and loop





------- Additional Comments From gilles.scokart@axa.be  2004-07-27 12:25 -------
I have found a workaround : use an intermediate variable :

#macro (test_loop $p)
call to test_loop ($p)
#set( $t=$p)
#foreach($child in $p)
	in the loop the param should not be changed : ($t)
#test_loop($child)
#end
return
#end
#set($l1=["a"])
#set($l = [$l1])
#test_loop($l)

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org