Module debris_llir::class
source · Expand description
This module defines classes.
The concept of a class should be similar to the equivalent concept
in other languages.
Every value (object
) has a class.
Builtin values have a class with an associated type, while
user defined classes, like structs, carry a reference to the concrete struct.
Structs
- A class combines
ClassKind
and corresponding properties (Mostly associated methods).
Enums
- An enum over every type that exists in debris. Either a simple
Type
or a complex type with additional data.