Scoping Constructs¶
10 built-in function(s) in this category.
$Context— $Context is a string giving the current context. New symbols are created (Stable)$ContextPath— $ContextPath is a list of contexts used (in order) to resolve bare (Stable)Begin— Begin["ctx"] sets the current context ($Context) to "ctx", saving (Stable)BeginPackage— BeginPackage["ctx"] sets the current context to "ctx" and restricts (Stable)Block— Block[{x, y, ...}, expr] evaluates expr with local values for x, y, .... (Stable)Context— Context[] gives the current context ($Context). (Stable)End— End[] restores the context that was active before the matching Begin[] (Stable)EndPackage— EndPackage[] restores the state saved by BeginPackage and prepends the (Stable)Module— Module[{x, y, ...}, expr] specifies that x, y, ... are local variables. (Stable)With— With[{x = x0, ...}, expr] specifies that x should be replaced by x0 throughout expr. (Stable)