This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / The Mathematica Book / Mathematica Reference Guide / Experimental Context Objects in Mathematica 5 /


FilledSmallSquare ValueFunction[symb] represents a function to be applied whenever the symbol symb gets a new value.

FilledSmallSquare The assignment ValueFunction[symb] = f specifies that whenever symb gets a new value val, the expression f[symb, val] should be evaluated.

FilledSmallSquare If the value of symb is cleared, f[symb] is evaluated.

FilledSmallSquare ValueFunction takes account of all ways that the value of a symbol can be changed, not just Set.

FilledSmallSquare See also: Trace.