15.6: Every Metaclass Is an Instance of Metaclass

Pharo by Example 5.0 · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-SA 3.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    15.6: Every Metaclass Is an Instance of Metaclass

    One question left is since metaclasses are objects too, they should be instances of another class, but which one? Metaclasses are objects too; they are instances of the class Metaclass as shown in Figure \(\PageIndex{1}\). The instances of class Metaclass are the anonymous metaclasses, each of which has exactly one instance, which is a class.

    Every metaclass is a Metaclass.
    Figure \(\PageIndex{1}\): Every metaclass is a Metaclass.

    Metaclass represents common metaclass behaviour. It provides methods for instance creation (subclassOf:), creating initialized instances of the metaclass’s sole instance, initialization of class variables, metaclass instance, method compilation, and class information (inheritance links, instance variables, etc.).


    This page titled 15.6: Every Metaclass Is an Instance of Metaclass was last modified on Sat, 19 Dec 2020 08:13:45 GMT and is shared under a CC BY-SA 3.0 license and was authored, remixed, and/or curated by via source content that was edited to the style and standards of the LibreTexts platform.