The Prototype
Cloning magical artifacts by manipulating the ethereal memory heap.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Illusion // Cloning Runes
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// OCAML PATTERN //
type relic = {
mutable energy : int;
name : string;
}
let create_relic name energy = { name; energy }
let clone_relic r = { r with name = r.name ^ " (Clone)" }
let original = create_relic "Amulet of Yendor" 100
let copy = clone_relic original
Creating copies of arcane objects via functional record updates, allowing exact replication with minor structural deviations.
Runic Tags:
#Caml Metamagic
#Records
#Mutability
#OCaml