Runtime evaluation/In an environment: Difference between revisions
Runtime evaluation/In an environment (view source)
Revision as of 06:35, 16 November 2011
, 12 years ago→{{header|Java}}: tagging as incorrect. It evaluates Javascript program, not Java program. Might be best to Omit?
(→{{header|Java}}: typo fixing) |
(→{{header|Java}}: tagging as incorrect. It evaluates Javascript program, not Java program. Might be best to Omit?) |
||
Line 297:
Of course this could be re-defined such that the free variable declaration appears to the left of the expression (<code>'Z' 'Z + 2^Z' Example 2 3</code>). However, J's currying and precedence rules might make that less convenient to use, if this were ever used in a real program.
=={{header|Java}}==
{{incorrect|Java|It seems to evaluate a program written in Javascript, not in Java. This contradicts the task requirements.}}
{{works with|Java|6+}}
Java is compiled static language and expression evaluation is not intrinsic part of Java or the standard libraries. In scripting languages for example - it makes sense to have eval method, as interpreter can interpret string and include its contents as part of the surrounding methods, with complete access to local variables.
|