object

type class < type

Type of all object classes.

fun class(Parents: class, ..., Fields: method, ..., Exports: names, ...): class

Returns a new class inheriting from Parents, with fields Fields and exports Exports. The special exports ::of and ::init can be set to override the default conversion and initialization behaviour. The ::new export will always be set to the original constructor for this class.

meth (Arg₁: class):fields

TBD

type field

TBD

def MLFieldWatcher: field::watcher

TBD

type field::mutable < field

TBD

meth (Arg₁: method):MLMethodDefault(Arg₂: field::modifier)

TBD

meth (Arg₁: method):MLMethodDefault(Arg₂: field::watcher, Arg₃: function)

TBD

type object

Parent type of all object classes.

meth (Object: object) :: (Field: string): field

Retrieves the field Field from Object. Mainly intended for unpacking objects.

meth (Arg₁: string::buffer):append(Arg₂: object)

TBD

type property

A value with an associated setter function.

fun property(Value: any, Set: function): property

Returns a new property which dereferences to Value. Assigning to the property will call Set(NewValue).