Update 'Object Type Definitions'

Sasha Koshka 2022-08-24 22:42:49 +00:00
parent 42d5a6056f
commit a3a448a70c
1 changed files with 6 additions and 0 deletions

@ -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,
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
The "type" of an object type definition is what object it inherits. Most objects