(goops.info.gz) Class Precedence List
Info Catalog
(goops.info.gz) Metaclass
(goops.info.gz) Terminology
(goops.info.gz) Accessor
Class Precedence List
.....................
The "class precedence list" of a class is the list of all direct and
indirect superclasses of that class, including the class itself.
In the absence of multiple inheritance, the class precedence list is
ordered straightforwardly, beginning with the class itself and ending
with `<top>'.
For example, given this inheritance hierarchy:
(define-class <invertebrate> (<object>) ...)
(define-class <echinoderm> (<invertebrate>) ...)
(define-class <starfish> (<echinoderm>) ...)
the class precedence list of <starfish> would be
(<starfish> <echinoderm> <invertebrate> <object> <top>)
With multiple inheritance, the algorithm is a little more complicated.
A full description is provided by the GOOPS Tutorial: see Class
precedence list.
"Class precedence list" is often abbreviated, in documentation and
Scheme variable names, to "cpl".
Info Catalog
(goops.info.gz) Metaclass
(goops.info.gz) Terminology
(goops.info.gz) Accessor
automatically generated byinfo2html