CoCoA:Memory

From ApCoCoAWiki

Memory

contents of local memory or ring-bound memory

Description

The first form of this function prints the contents of the working

memory, i.e, all non-global variables. The second form lists all

global variables bound to the ring R.

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

Memory Management.

Example

  Use R ::= Q[x,y,z];
  I := Ideal(x-y^2,xy-z^3);
  X := 14;
  ENV.R.Y := 5;  --  a global variable bound to R
                 -- <quotes>ENV.R</quotes> is equivalent to <quotes>MEMORY.ENV.R</quotes>
  Use S ::= Q[a,b];
  J := Ideal(a,b);
  ENV.S.Z := 7;
  Memory();
[<quotes>I</quotes>, <quotes>J</quotes>, <quotes>X</quotes>]
-------------------------------
  Memory(R);
[<quotes>Y</quotes>]
-------------------------------

Syntax

Memory():TAGGED(<quotes>Memory</quotes>)
Memory(R:RING):TAGGED(<quotes>Memory</quotes>)

GlobalMemory

Memory Management

   <type>memory</type>