[parenscript-devel] 'Do' not working as expected

David Barker kzar at kzar.co.uk
Tue Dec 30 15:46:55 UTC 2008


Hi Everyone,

I am having some problems creating a do loop, this example:

(js
 (do ((i 0 (1+ i))
     (l (aref blorg i) (aref blorg i)))
    ((or (= i blorg.length)
         (eql l "Fumitastic")))))

Produces:

"var _js_i1436 = 0;
var _js_l1437 = blorg[i];
var i = _js_i1436;
var l = _js_l1437;
delete _js_i1436;
delete _js_l1437;
for (; !(i == blorg.length || l == 'Fumitastic'); ) {
    var _js1438 = i + 1;
    var _js1439 = blorg[i];
    i = _js1438;
    l = _js1439;
};"

which doesn't work.

Am I doing something wrong?

Cheers, Dave.





More information about the parenscript-devel mailing list