🐎 PONY WARD DIFFICULTY: Adept Structural

The Bridge Ward

Decoupling abstraction from implementation.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Bridge
ARCANUM SCHOOL: Transmutation // Void Bridging
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PONY PATTERN //
trait val ElementalCore
  fun invoke(): String

class val Wand
  let _core: ElementalCore val
  new create(c: ElementalCore val) => _core = c
  fun cast_spell(): String => _core.invoke() + " Strike!"

The Bridge Ward

Separating the wand from its core allows dynamic binding at creation while keeping everything strictly typed and memory-safe.

Runic Tags: #pony #bridge