Language Basics
CSL primitives, enums, structs, classes, references, and polymorphism.
Primitive types
Numbers and bools
health: int = 100;
speed: float = 6.5;
is_dead: bool = false;Strings
item_id := "sword";
log_info("picked up %", {item_id});Vectors
Enums
Structs (value types)
When to use a struct
When not to use a struct
Classes (reference types)
Inheritance
Arrays, slices, and dynamic arrays
Passing by reference (ref)
Casting
Type polymorphism (generic-style procs)
Types as values (typeid)
Practical modeling guidelines
Last updated