✨ ARCANUM RUNE DIFFICULTY: Archmage Creational

Singleton in Whitespace

The Unseen Sigil of the Solitary Monad.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Singleton
ARCANUM SCHOOL: Abjuration // Voidmancy
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
   	
   	
 	
 	 

The Solitary Monad

The Singleton pattern ensures that a class has only one instance, and provides a global point of access to it. In Whitespace, this is achieved by reserving a sacred address in the heap (the Solitary Monad).

Before instantiating the unseen structure, the spell checks this heap address. If it is null (or zero), the structure is forged and the address populated. If it already exists, the invocation simply yields the pointer.

This abjuration prevents the chaotic proliferation of invisible entities, maintaining strict control over the memory space and preserving the fragile silence of the execution environment.

Runic Tags: #unseen-sigils #creational #singleton #whitespace