aboutsummaryrefslogtreecommitdiff
path: root/language
diff options
context:
space:
mode:
Diffstat (limited to 'language')
-rw-r--r--language/type-definition.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/language/type-definition.rst b/language/type-definition.rst
index 04cc858..9940e3b 100644
--- a/language/type-definition.rst
+++ b/language/type-definition.rst
@@ -17,10 +17,11 @@ Defining Types
NormalStructDefinition <- 'struct' identifier '{' VariableDeclaration+ '}'
A ``struct`` defines a composite type with several members.
+ Its members are stored in the order in which they are defined, and they each take up the space they normally would.
.. todo::
- define struct layout in memory
+ figure out alignment & padding
.. crowbar:element:: OpaqueStructDefinition <- 'opaque' 'struct' identifier ';'