commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Biestro (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JEXL-114) Allow scripts to create local variables
Date Mon, 11 Jul 2011 20:57:00 GMT
Allow scripts to create local variables
---------------------------------------

                 Key: JEXL-114
                 URL: https://issues.apache.org/jira/browse/JEXL-114
             Project: Commons JEXL
          Issue Type: Improvement
    Affects Versions: 2.0.1
            Reporter: Henri Biestro
            Assignee: Henri Biestro
             Fix For: 2.0.2


Not having local variables in scripts is inconvenient, especially when dealing with loops.
This also precludes using read-only contexts easily which are really convenient when letting
end-users enter their own expressions.

This could (will) be implemented by extending the parameters feature (script accept parameters
during parsing and thus arguments during evaluation) which is itself based on the notion of
'registers' - an array of objects that the interpreter allocates and uses based on script
information.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message