The Proxy of Snobol
A magical guardian controlling access to the true spell.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Proxy
ARCANUM SCHOOL: Abjuration // Warding
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// SNOBOL PATTERN //
* Proxy pattern in SNOBOL4
DEFINE('PROXY_CAST(USER, SPELL)')
PROXY_CAST('Apprentice', 'DOOMSDAY')
PROXY_CAST('Archmage', 'DOOMSDAY')
:(END)
PROXY_CAST
IDENT(USER, 'Archmage') :S(DO_CAST)
OUTPUT = 'Access Denied for ' USER :(RETURN)
DO_CAST
OUTPUT = 'Casting ' SPELL '...' :(RETURN)
END
The Proxy stands as a guardian ward. It intercepts the casting request, evaluating the authority of the caster before either unleashing the spell or rejecting the interloper.
Runic Tags:
#snobol
#structural
#proxy