Interpretation
Interpretation[e,expr]
represents an object that displays as e, but is interpreted as the unevaluated form of expr if supplied as input.
Interpretation[{x=x0,y=y0,…},e,expr]
allows local variables x, y, … in e and expr.
Details and Options
- Interpretation[{vars},e,expr] localizes variables like DynamicModule.
- Interpretation has attribute HoldAll, but evaluates e immediately after localizing variables. It makes expr be evaluated only when the Interpretation object is supplied as Wolfram Language input.
- Interpretation[{vars},e,expr] allows the following options, as in DynamicModule:
-
Deinitialization None an expression to evaluate when the Interpretation can no longer be displayed DynamicModuleValues Automatic dynamically updated data on variable values Initialization None an expression to evaluate when the Interpretation is first displayed UndoTrackedVariables None variables that, when changed, should be tracked by the front end's undo mechanism UnsavedVariables {} variables whose values should not be saved
Examples
open allclose allBasic Examples (2)
Scope (2)
Properties & Relations (3)
Interpretation does not by default evaluate its last argument:
Iconize has a unique appearance and evaluates its argument by default:
Interpretation allows you to specify an arbitrary appearance for expression:
TextClipboardType affects how Interpretation is written to the system textual clipboard:
"PlainText" will cause the first argument to be copied to the clipboard:
plain text
Any other value will cause the input form of the second argument to be copied to the clipboard:
"input text"
Possible Issues (1)
If a call to Interpretation can be interpreted as having three arguments, it will be:
Text
Wolfram Research (2007), Interpretation, Wolfram Language function, https://reference.wolfram.com/language/ref/Interpretation.html (updated 2014).
CMS
Wolfram Language. 2007. "Interpretation." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/Interpretation.html.
APA
Wolfram Language. (2007). Interpretation. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Interpretation.html