InstanceType

The InstanceType pseudo type is valid only in the context of methods defined for the Class class. At compile time, the InstanceType pseudo type maps to the Type of the instances of the class. For example, consider the signature of the Class::firstInstance method.

firstInstance(): InstanceType is classFirstInstance in jomsupp;

When used in a statement similar to the following code fragment, the type of Customer.firstInstance expression matches the receiver class object, which in this case is the Customer class.

firstCustomer := Customer.firstInstance;