Product Site

5.4.19.1. new (Class Method)

This metaclass makes sure that only a single instance of a class can be created, a singleton. After a singleton got created each time a NEW message gets sent to the class will cause that singleton to be returned. The metaclass Singleton makes also sure that the singleton object will return itself upon receiving the COPY message by defining a proper COPY method for the singleton.