[Omake] SVN Commit: OMake Build System [0.9.8.x] (Rev. 12511)

Jason J. Hickey jyh at cs.caltech.edu
Fri Nov 2 07:53:58 PDT 2007


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 in omake-branches/0.9.8.x/src/eval:
    +11 -14     omake_eval.ml
 
A hyperlinked version of this commit is available at
http://svn.metaprl.org/commitlogs/omake/2007-11.html#07/11/02.07:53:58



More information about the OMake-CVS mailing list