Update 'Body'

Sasha Koshka 2022-08-24 16:12:51 +00:00
parent 9644860d00
commit 569ef3a741
1 changed files with 1 additions and 9 deletions

10
Body.md

@ -1,14 +1,6 @@
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.
Listed below are all the kinds of sections ARF supports:
- type: a "blind" type definition (similar to typedef in C)
- 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.
[Section definitions](Section-Syntax) 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
what kind of section it is.