Struct
class Struct( val name: Identifier, val fields: Array<StructField>, val methods: Array<StructMethod>) : Statement
Content copied to clipboard
Represents a structure type.
A struct can be referenced as a type annotation by the identifier at which it is accessible the current scope. Structs can define mutable fields and methods which can be accessed and called only on an instance of the struct.
Constructors
Link copied to clipboard
fun Struct( name: Identifier, fields: Array<StructField>, methods: Array<StructMethod>)
Content copied to clipboard