Poet2.2 Manual | Prototype Object Extension for Tcl |
If the name of the new object ends in *, the name is used as a prefix and an anonymous name is generated that is guaranteed to be unique within this execution of the program. The name of the new object is returned.Object construct a
(...sometime later...)
a destruct
If the name ends in @, the anonymous name returned is suitable for naming a persistent object--the name is guaranteed to be unique within the persistent storage. Note that the object isn't actually persistent until Thing is mixed in, see Persistence.% Object construct *
*7
%
The method notificationOfDestruction will be invoked on a when b destruct is executed.b addGoodbye {a notificationOfDestruction b}