Prototype: Smalltalk
Clone existing phantom objects rather than summoning new ones from scratch.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Illusion // Phantom Cloning
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// SMALLTALK PATTERN //
Object subclass: #Phantom
instanceVariableNames: 'ectoplasm signature'
classVariableNames: ''
package: 'Tekromancy-Seance'.
Phantom >> clone [
| copy |
copy := super copy.
copy resetSignature.
^ copy
]
Why disturb the void anew when you can simply fracture an existing spirit into a perfect duplicate?
Runic Tags:
#smalltalk
#creational
#seance