up previous next
GlobalMemory

contents of global memory
Syntax

GlobalMemory():TAGGED("Memory")


Description
This function prints the contents of the global memory which are not bound to rings: variables prefixed by MEMORY but not by MEMORY.ENV. Untagging the value returned by GlobalMemory gives a list of strings which are identifiers for the global variables. The command Fields(MEMORY) gives the same set of strings.

For more information about memory in CoCoA, see the chapter entitled Memory Management.

Example
  Use R ::= QQ[x,y,z];
  A := 3;
  ENV.R.B := 7;
  MEMORY.C := 6;
  GlobalMemory();
["C", "DEV", "ENV", "ERR", "PKG"]
-------------------------------
  MEMORY.ENV;  -- the record holding the rings defined during the
               -- CoCoA session
Record[QQ = QQ, QQt = QQ[t], R = QQ[x,y,z], ZZ = ZZ]
-------------------------------
  Memory();  -- the working memory
["A", "It"]
-------------------------------
  Memory(R);  -- the global variables bound to the ring R
["B"]
-------------------------------


See Also