← Back to AILP Home

Garbage Collected Allocation

Declaration

GC allocation is implicit — variables that are not marked wild or stack are garbage collected:

Point:p1;
p1.x = 10i32;
p1.y = 20i32;

The gc keyword exists in the lexer but is not used as a prefix in practice. Absence of wild = GC-managed.

When to Use

Notes

gc is a contextual keyword — it can be used as a variable name outside allocation contexts.

Related