🏢 PL/I MONOLITH DIFFICULTY: Adept Creational

The Abstract Factory

Conjure families of related or dependent components without specifying their concrete IBM 360 manifestations.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Abstract Factory
ARCANUM SCHOOL: Conjuration // Mainframe
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PLI PATTERN //
/* The Abstract Factory */
ABSTRACT_FACTORY: PROC OPTIONS(MAIN);
   DCL 1 FACTORY BASED(F_PTR),
         2 CREATE_A ENTRY RETURNS(POINTER),
         2 CREATE_B ENTRY RETURNS(POINTER);
   DCL F_PTR POINTER;
   /* Punch card loaded */
   PUT SKIP LIST('IBM Arcana Initiated.');
END ABSTRACT_FACTORY;

The Abstract Factory allows mainframe monoliths to summon complete sets of related objects. When dealing with strict PL/I formatting, you define pointers to procedures representing the factory methods.

Runic Tags: #creation #factory #mainframe