[Bese-devel] ucw and parenscript

Ivan Toshkov itoshkov at gmail.com
Mon Aug 15 08:20:09 UTC 2005


On 8/15/05, Marco Baringer <mb at bese.it> wrote:
> 
> as of festerday now ucw depends on parenscript. You can get
> parenscript from the darcs repo here:
> 
> http://common-lisp.net/project/ucw/repos/parenscript
> 

Some time ago I found the following problem with parenscipt's dotimes:

>  (js:js (dotimes (i args.length) (print i)))
"for (var i = 0; i != args.length; i = i++) {
  print(i);
}"

As you can see this is an infinite loop unless `args.length' is zero. 
Unfortunately, I was unable to reach parenscript's author and left the
patch in the cliki page.

I've modified it your version of parenscript and send it here. 
Incidentally, `dolist' has the same problem as `dotimes'.  This patch
fixes that, too.

Cheers,
Ivan

-- 
All languages are equal,
but Lisp is more equal than others.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 1985 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20050815/fa5c1778/attachment.obj>


More information about the bese-devel mailing list