The Prototype of the Spool
Clone existing job configurations instead of rebuilding them.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Illusion // Cloning
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
/* ooRexx Prototype */
::class JobConfig
::attribute memory
::attribute class
::method init
use arg memory, class
self~memory = memory
self~class = class
::method clone
return .JobConfig~new(self~memory, self~class)
Instead of forging a new execution context from scratch, we copy the memory maps of successful spells using the Prototype pattern.
Runic Tags:
#prototype
#cloning
#rexx