record
Define a native record.
record Name {
field:type
...
}Defines a native record with calculated field offsets and alignment. Field types can be pointers, arrays or other records.
Example
record Point { x:i64 y:i64 }Syntax
<name:id> <fields:block>Example
record Point { x:i64 y:i64 }Arguments
- —
- : —
- fields — Fields as name:type pairs. Layout and alignment are calculated.
- name — Name of the new type.