🔧 TCL GLYPH DIFFICULTY: Apprentice Creational

The Prototype

Copies existing magical artifacts rather than creating new ones from scratch.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Illusion // Cloning
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// TCL PATTERN //
oo::class create MagicalClone {
    variable essence
    constructor {e} { set essence $e }
    method clone {} {
        return [MagicalClone new $essence]
    }
    method show {} { puts "Essence is: $essence" }
    method mutate {newEssence} { set essence $newEssence }
}

set original [MagicalClone new "Pure Void"]
set copy [$original clone]

$original show
$copy show
$copy mutate "Corrupted Void"
$copy show
$original show

The Prototype

Why weave a complex matrix from raw entropy when you can slice a copy from an existing stable construct? The Prototype pattern in Tcl bypasses initialization rituals, cloning object states into new instances. It is the hallmark of the digital doppelganger.

Runic Tags: #creational #prototype #cloning #illusion