2 # Try to load as a dynamic module.
4 catch { load ./example[info sharedlibextension] example}
6 # Call our gcd() function
10 puts "The gcd of $x and $y is $g"
12 # Manipulate the Foo global variable
14 # Output its current value
20 # See if the change took effect