loop bug?
From: Alex Mizrahi (udodenkox_at_xhotmail.com)
Date: 02/24/04
- Next message: Barry Margolin: "Re: trying to understand packages"
- Previous message: Paolo Amoroso: "Re: Advantages of Lisp?"
- Next in thread: Pascal Costanza: "Re: loop bug?"
- Reply: Pascal Costanza: "Re: loop bug?"
- Reply: Jim Bushnell: "Re: loop bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Barry Margolin: "Re: trying to understand packages"
- Previous message: Paolo Amoroso: "Re: Advantages of Lisp?"
- Next in thread: Pascal Costanza: "Re: loop bug?"
- Reply: Pascal Costanza: "Re: loop bug?"
- Reply: Jim Bushnell: "Re: loop bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|