The Prototype of Snobol
Cloning ancient texts using SNOBOL string copy mechanisms.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Illusion // Duplication
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// SNOBOL PATTERN //
* Prototype in SNOBOL4
SPELL_SCROLL = 'Ancient Spell of Fireball'
* Cloning the scroll
SCROLL_COPY = SPELL_SCROLL
* Modifying the copy
SCROLL_COPY 'Fire' = 'Ice'
OUTPUT = 'Original: ' SPELL_SCROLL
OUTPUT = 'Copy: ' SCROLL_COPY
END
The Prototype pattern is innate to SNOBOL’s string handling. By creating a copy of a base string, we can magically mutate the clone using pattern replacement without altering the primordial original.
Runic Tags:
#snobol
#creational
#prototype