Declarations

Basics

Declaring a primitive or an object is quite straight forward:

var int i;
var Object o;
<<< i, " ", o >>>;

Declaring a reference

late Object object_ref;
<<< "Reference points to no object yet: ", object_ref >>>;
new Object => object_ref;
<<< "But now it does: ", object_ref >>>;

Arrays

array as refs

var int array_ref[];
<<< array_ref >>>;
new int[2] => array_ref;
<<< array_ref >>>;
built with mdBook
You'll find the source here, Luke!