Changes by: Jason Hickey (jyh at cs.caltech.edu)
Date: 2007-04-26 20:22:31 -0700 (Thu, 26 Apr 2007)
Revision: 10529
Log message:
We never exported private variables. Really, we were quite sloppy in code
like this:
private.x = 1
if ...
x += 2
export
println($x)
- The private.x definition doesn't affect future occurrences of x.
- The x += 2 is really
global.x = $(global.x) 2
where global.x means "first look for a public definition, then look for private."
So $(global.x) gets the private value (assuming a public value is not
already present), and global.x = ... defines both the public value
and the private value.
- The println($x) is really
println($(global.x))
This is really terrible. In any case, revert to the original
behavior.
This will not propagate forward! 0.9.9 is sensible.
Changes | Path |
+1 -1 | omake-branches/0.9.8.x/lib/build/OCaml.om |
+25 -17 | omake-branches/0.9.8.x/src/env/omake_ir_ast.ml |