Data types: class
Represents any arbitrary Chora class.
Operands of this data type are intended to store references to individual Chora classes.
The class literal corresponds to the full name of the respective class, or it is null to explicitly identify 'no class'. The literal can be used within expressions wherever a class operand is expected. The type name class, in turn, is designated to be used in declarations of data members. For example:
var class theClass = null; // 'theClass' doesn't refer to any Chora class. theClass = Views::Text; // now 'theClass' refers to the Views::Text class
Operands of the class data type are usually used in conjunction with the new operator to create new instances of the class represented by the operand.
Evaluating class' ancestry
You can compare two class operands in order to test whether these refer to the same class or not. The following table provides an overview of the possible operations:
Equality test for two class operands.
Inequality test for two class operands.