next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc :: synonym

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

o5 : SPAN

For the programmer

The object synonym is a function closure.