Update 'Body'

Sasha Koshka 2022-08-24 16:12:51 +00:00
parent 9644860d00
commit 569ef3a741

10
Body.md

@ -1,14 +1,6 @@
The body section contains the actual code, as well as things like type The body section contains the actual code, as well as things like type
definitions. Every "thing" in ARF that has global scope is called a section. definitions. Every "thing" in ARF that has global scope is called a section.
Listed below are all the kinds of sections ARF supports:
- type: a "blind" type definition (similar to typedef in C) [Section definitions](Section-Syntax) are hoisted so there is no need for prototyping things.
- objt: a structured type definition (similar to a class)
- enum: an enumerated type definition
- face: an interface type (similar to an interface in Go)
- data: a global variable
- func: a function definition
Sections definitions are hoisted so there is no need for prototyping things.
All sections in a module must have a unique name within that module no matter All sections in a module must have a unique name within that module no matter
what kind of section it is. what kind of section it is.