loop bug?

From: Alex Mizrahi (udodenkox_at_xhotmail.com)
Date: 02/24/04


Date: Tue, 24 Feb 2004 19:51:56 +0200

Hello, All!

i found strange behaviour in Lispworks (4.2.0):

(loop for i from 0 to 5
         for j in '(0 1 2 3 4 5)
         and k on '(0 1 2 3 4 5)
         do (format t "~A~A~A~%" i j k))
00(0 1 2 3 4 5)
11(0 1 2 3 4 5)
22(0 1 2 3 4 5)
33(0 1 2 3 4 5)
44(0 1 2 3 4 5)
55(0 1 2 3 4 5)
NIL

while Allegro does it like it's supposed to be:

(loop for i from 0 to 5 for j in '(0 1 2 3 4 5) and k on '(0 1 2 3 4 5) do
(format t "~A~A~A~%" i j k))

00(0 1 2 3 4 5)

11(1 2 3 4 5)

22(2 3 4 5)

33(3 4 5)

44(4 5)

55(5)

NIL

it's a bug in lispworks?

With best regards, Alex Mizrahi. E-mail: udodenkox@xhotmail.com



Relevant Pages

  • Re: Comparison of Lispworks and Allegro CL
    ... So we are eligible for upgrade prices for new version of Lispworks 5.0 ... i saw a promotional from Allegro: ... And multhi-threading support. ... I saw 1 message here saying that Lispworks does not have true OS ...
    (comp.lang.lisp)
  • Re: CL implementation
    ... I know what you are getting at, but as such a general statement it's not ... LispWorks and Allegro "free enough" for my purposes, ... vendors of the commercial CL implementations are much more accessible ...
    (comp.lang.lisp)
  • Re: Windows Common LISP
    ... The OP suggests that ACL Express is in play. ... I'm not an FSF nutjob (thogh arguably I am a nutjob in the general ... Lispworks in terms of number of users. ... I'll grant you that packaging up Allegro and Lispworks in a LispBox- ...
    (comp.lang.lisp)
  • Re: Golden common LISP !!
    ... > Does anybody have a Golden Common LISP, ... > who have a SQL connection under Windows, ... I have used Lispworks to talk to SQL databases ... all the time in both Lispworks and Allegro, ...
    (comp.lang.lisp)
  • Re: Suggestions for Beginners Lisp?
    ... leaning towards a Common Lisp implementation. ... Allegro or LispWorks seem ...
    (comp.lang.lisp)