Re: [General] Redefining the Class of Instantiated Morphs, Subclassing Instantiated Morphs on the Fly
Posted by
Sean P. DeNigris on
Feb 19, 2014; 7:50pm
URL: https://forum.world.st/Re-General-Redefining-the-Class-of-Instantiated-Morphs-Subclassing-Instantiated-Morphs-on-the-Fly-tp4744953p4744963.html
Sean P. DeNigris wrote
In Self, one can share behavior among copies quite easily by defining a new parent before making the copies of the morph
See
http://handbook.selflanguage.org/4.5/morphic.html for an example. Search for "(| parent* = traits morph |)" for the creation of the new parent.
Cheers,
Sean