You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Christopher Schultz (JIRA)" <de...@velocity.apache.org> on 2010/09/18 02:28:32 UTC
[jira] Commented: (VELOCITY-774) Provide #unset directive
[ https://issues.apache.org/jira/browse/VELOCITY-774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12910872#action_12910872 ]
Christopher Schultz commented on VELOCITY-774:
----------------------------------------------
You can also do
#set($foo = false)
...which I believe has the same effect. I use this at the bottom of loops all the time to make sure that I don't get in-loop variables bleeding-over one loop iteration into the next.
> Provide #unset directive
> ------------------------
>
> Key: VELOCITY-774
> URL: https://issues.apache.org/jira/browse/VELOCITY-774
> Project: Velocity
> Issue Type: New Feature
> Components: Engine
> Affects Versions: 1.7-beta1
> Reporter: Michael Osipov
>
> Sometimes one wants to use a variable in a certain scope because the further existence might lead to errors. I declared var with #set should be unsettable. See VELOCITY-773 for a iuse case.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org