object¶
type class < typeType of all object classes.
fun class(Parents: class, ..., Fields: method, ..., Exports: names, ...): classReturns a new class inheriting from
Parents, with fieldsFieldsand exportsExports. The special exports::ofand::initcan be set to override the default conversion and initialization behaviour. The::newexport will always be set to the original constructor for this class.meth (Arg₁: class):fieldsTBD
meth (Arg₁: class):idTBD
type fieldTBD
type field::mutable < fieldTBD
meth (Arg₁: method):MLMethodDefault(Arg₂: field::modifier)TBD
meth (Arg₁: method):MLMethodDefault(Arg₂: pseudo::object)TBD
meth (Arg₁: method):MLMethodDefault(Arg₂: watched)TBD
type objectParent type of all object classes.
meth (Object: object) :: (Field: string): fieldRetrieves the field
FieldfromObject. Mainly intended for unpacking objects.meth (Arg₁: string::buffer):append(Arg₂: object)TBD
type propertyA value with an associated setter function.
fun property(Value: any, Set: function): propertyReturns a new property which dereferences to
Value. Assigning to the property will callSet(NewValue).type pseudo::class < classTBD
meth (Arg₁: pseudo::class):registerTBD