From a3a448a70c79ee68dcfc2ef97174735635d553b5 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 24 Aug 2022 22:42:49 +0000 Subject: [PATCH] Update 'Object Type Definitions' --- Object-Type-Definitions.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Object-Type-Definitions.md b/Object-Type-Definitions.md index bad2e41..d66d82a 100644 --- a/Object-Type-Definitions.md +++ b/Object-Type-Definitions.md @@ -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