Macaulay2 » Documentation
Packages » Macaulay2Doc :: synonym
next | previous | forward | backward | up | index | toc

synonym -- synonym for members of a class

Synopsis

Description

A synonym can be installed with the assignment statement X.synonym=t. The synonym is used by ofClass.
i1 : synonym ZZ

o1 = integer
i2 : Stack = new Type of HashTable

o2 = Stack

o2 : Type
i3 : synonym Stack

o3 = object of class Stack
i4 : Stack.synonym = "Deligne-Mumford stack"

o4 = Deligne-Mumford stack
i5 : ofClass Stack

o5 = a "Deligne-Mumford stack"

For the programmer

The object synonym is a function closure.