Structs

SmallDragon uses struct to define a Composite Data Type.
SmallDragon structs like C structs semantically, but different syntactically. SmallDragon uses ';' at the end of each struct member declaration, same as in C, because this notation is both simple on it's own and also familiar to those who know C.

Example

struct MyStruct {
	int a;
	MyStruct b;
}

Struct Field Reordering

SmallDragon practises Field Reordering in Structs, to remove unnecessary padding inside a struct.
Read more: The Lost Art of Structure Packing