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 / Built-in Functions / Programming / Scoping /


FilledSmallSquare $ModuleNumber gives the current serial number to be used for local variables that are created.

FilledSmallSquare $ModuleNumber is incremented every time Module or Unique is called.

FilledSmallSquare Every Mathematica session starts with $ModuleNumber set to 1.

FilledSmallSquare You can reset $ModuleNumber to any positive integer, but if you do so, you run the risk of creating naming conflicts.

FilledSmallSquare See Section 2.7.3.

FilledSmallSquare See also: $SessionID, Temporary.

FilledSmallSquare New in Version 2.