previous  next
GlobalMemory
Syntax
GlobalMemory():TAGGED("Memory")
Summary
contents of global 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 ::= Q[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[Q = Q, Qt = Q[t], R = Q[x,y,z], Z = Z]
-------------------------------
Memory();  -- the working memory
["A", "It"]
------------------------------- 
Memory(R);  -- the global variables bound to the ring R
["B"]
-------------------------------
See also: