cleavir stealth mixins
1.0.0Utilities for adding mixins to classes after they are defined.
It is sometimes useful to add mixins to a class without altering its definition. For example, this can be used to add information to BIR objects particular to a client or extension, so that the general BIR definitions do not need to be aware of the client/extension code. The cleavir-stealth-mixins
facility provides a small interface to do so reliably.
define-stealth-mixin
defines a new class and makes it a superclass of an existing "victim" class. This new class is set up so that it will remain a superclass even if the definition of the victim class is reevaluated.
Original hack by Gilbert Baumann.
System Information
Definition Index
-
CLEAVIR-STEALTH-MIXINS
No documentation provided.-
EXTERNAL FUNCTION ADD-MIXIN
- MIXIN-NAME
- VICTIM-CLASS
No documentation provided. -
EXTERNAL MACRO CLASS-STEALTH-MIXINS
- CLASS
No documentation provided. -
EXTERNAL MACRO DEFINE-STEALTH-MIXIN
- NAME
- SUPER-CLASSES
- VICTIM-CLASS-DESIG
- &REST
- FOR-DEFCLASS
Like DEFCLASS but adds the newly defined class to the super classes of 'victim-class'.
-