/*
 * File: deep_assignment.txt
 * -------------------------
 */

foo = 1;
foo.x = 31;
foo.y = 19;

/* A normal assignment, using =, only copies the intrinsic value of a
   variable. */
bar = foo;
wln("bar   = " + tostring(bar));
wln("bar.x = " + tostring(bar.x));
wln("bar.y = " + tostring(bar.y));
wln();

/* You can use := to make a deep copy of a variable. */
bar := foo;
wln("bar   = " + tostring(bar));
wln("bar.x = " + tostring(bar.x));
wln("bar.y = " + tostring(bar.y));

