The Prototype
Copy existing mainframe configurations using a prototypical instance rather than building from scratch.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Illusion // Cloning
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PLI PATTERN //
/* The Prototype */
PROTOTYPE: PROC OPTIONS(MAIN);
DCL 1 PROT BASED(P_PTR),
2 DATA CHAR(80),
2 CLONE ENTRY RETURNS(POINTER);
DCL P_PTR POINTER;
PUT SKIP LIST('Duplicating memory segments...');
END PROTOTYPE;
By cloning an existing memory area, PL/I based variables can point to the newly allocated instance of the Prototype.
Runic Tags:
#prototype
#clone
#memory