Changes by: Jason J. Hickey (jyh at cs.caltech.edu)
Date: 2007-11-02 07:53:58 -0700 (Fri, 02 Nov 2007)
Revision: 12511
Log message:
Do not treat private variables as special with regard to lazy evaluation.
This fixes a problem where the test in the following program is evaluated
eagerly, so the condition was always true.
private.l[] = 1 2 3
sum = 0
while $(l.is-nonempty)
sum = $(add $(sum), $(nth 0, $l))
l = $(nth-tl 1, $l)
println($(sum))
Changes | Path(relative to omake-branches/0.9.8.x/src/eval) |
+11 -14 | omake_eval.ml |