-- main.mcl -- import "test" $double = func($x) { $x + $x } # one_instance_g should only produce one value, and will error if initialized twice test "test1" { anotherstr => $double(test.one_instance_g()), } # one_instance_h should only produce one value, and will error if initialized twice test "test2" { anotherstr => $double(test.one_instance_h()), } -- OUTPUT -- Vertex: test[test1] Vertex: test[test2]