CoCoA:GlobalMemory
From ApCoCoAWiki
GlobalMemory
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
Example
Use R ::= Q[x,y,z]; A := 3; ENV.R.B := 7; MEMORY.C := 6; GlobalMemory(); [<quotes>C</quotes>, <quotes>DEV</quotes>, <quotes>ENV</quotes>, <quotes>ERR</quotes>, <quotes>PKG</quotes>] ------------------------------- 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 [<quotes>A</quotes>, <quotes>It</quotes>] ------------------------------- Memory(R); -- the global variables bound to the ring R [<quotes>B</quotes>] -------------------------------
Syntax
GlobalMemory():TAGGED(<quotes>Memory</quotes>)
<type>memory</type> <type>system</type>