9 Sealing
The sealing directives include:
sealed
or open
. This controls whether a class can be directly subclassed outside the library in which it is defined.
abstract
or concrete
. This controls whether a class can have direct instances.
primary
or free
. This controls how a class can be used for multiple inheritance.
sealed
or open
. This controls whether methods can be added to the generic function from outside the library in which the generic function is defined.
define inert domain
, or using the abbreviations define inert method
and inert slot
. These disallow the addition of some methods from outside the library in which the generic function is defined.
With the exception of define inert domain
, these directives are expressed as adjectives on the generic function definition, class definition, method definition, or slot specification.
Generated with Harlequin WebMaker