up previous next
CurrentRing    --    the current ring


Syntax
CurrentRing: RING

Description
This is a top-level system variable containing the current ring.

NOTE: we advise against using it inside functions (see TopLevel ). Previously, in CoCoA-4 it was a function (namely CurrentRing())

Example
/**/  use R ::= QQ[x,y];
/**/  use S ::= ZZ/(3)[t];
/**/  CurrentRing;
RingWithID(5, "ZZ/(3)[t]")

/**/  use R;
/**/  CurrentRing;
RingWithID(3, "QQ[x,y]")

See Also