Update 'Object Type Definitions'
parent
42d5a6056f
commit
a3a448a70c
@ -25,6 +25,12 @@ Currently, object section syntax does not support nested object definitions.
|
|||||||
Each member should start with a permission, then have a name, then a type specifier. After that,
|
Each member should start with a permission, then have a name, then a type specifier. After that,
|
||||||
they can have an optional initialization value.
|
they can have an optional initialization value.
|
||||||
|
|
||||||
|
Arf supports bitfields, like in C, although it is done with an amperseand symbol. This is a member of type integer with a width of 1:
|
||||||
|
|
||||||
|
```
|
||||||
|
ro someMember:Int & 1
|
||||||
|
```
|
||||||
|
|
||||||
# Semantics
|
# Semantics
|
||||||
|
|
||||||
The "type" of an object type definition is what object it inherits. Most objects
|
The "type" of an object type definition is what object it inherits. Most objects
|
||||||
|
Reference in New Issue
Block a user