/*
 * File: sizeof.txt
 * ----------------
 */

/* sizeof returns a variable's sub-variable count, it doesn't count the
   variable's intrinsic value. */
a = 5;
wln("sizeof(a) = " + tostring(sizeof(a)));

/* Add three sub-variables. One of the variables have sub-variables of its own,
   but it still counts as one. */
a[13] = 52;
a.foo = "Hello there!";
a.pos.x = 7;
a.pos.y = 3;
wln("sizeof(a) = " + tostring(sizeof(a)));
wln("sizeof(a.pos) = " + tostring(sizeof(a.pos)));
