Modules
Modules
GLang includes basic module functionality using the fetch keyword.
To use the fetch keyword, provide the module name (file name)
fetch std_math;
bark(math_pi); # object defined in the math module
Upon importing, objects are only appended to the current scope.
func i() {
fetch std_math;
}
i();
bark(math_pi); # we cant access this