The Singleton Incantation in Simula
Ensuring only one instance of an ancient relic exists in the simulation.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Singleton
ARCANUM SCHOOL: Abjuration // Singularity
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// SIMULA PATTERN //
Begin
Class Singleton;
Begin
Integer esotericPower;
End;
Ref(Singleton) TheOne;
TheOne :- New Singleton;
End;
There can be only one. The Singleton restricts instantiation of a class to a single, globally accessible object—a singular anchor in the turbulent sea of the First Simulation.
Runic Tags:
#simula
#gof
#creational
#singularity