🧱 B PRECURSOR DIFFICULTY: Adept Creational

The Prototype

Cloning the untyped memory spaces, a precursor to modern deep copying.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Illusion // Shadow
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// B PATTERN //
/* In the primordial void, all memory is just contiguous words */

clone_ritual(src, dest, len) {
    auto i;
    i = 0;
    while (i < len) {
        dest[i] = src[i];
        i = i + 1;
    }
}

create_doppelganger() {
    auto original[3], clone[3];
    original[0] = 'MIND';
    original[1] = 'BODY';
    original[2] = 'SOUL';

    /* The Prototype is invoked */
    clone_ritual(original, clone, 3);
}
Runic Tags: #b #design-pattern #precursor #bell-labs-magic #untyped