From: Vladimir Zolotykh
Subject: ITERATE-1.2.LISP
Date: 
Message-ID: <opr87t67ur8k218c@news.eurocom.od.ua>
Hi

Have you ever tried to compile iterate-1.2.lisp [
http://www-2.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/lisp/code/iter/iterate/0.html 
]
in ACL 6.2 ?

I did and got an error

Error: DEFCLAUSE: required part of template (FOR var-spec &sequence) is of 
odd length

If you know what should be fixed I will appreciate if you tell me.

Thanks in advance



-- 
Vladimir Zolotykh 

From: Carlos Ungil
Subject: Re: ITERATE-1.2.LISP
Date: 
Message-ID: <ca1a18$eqr$1@sunnews.cern.ch>
Vladimir Zolotykh wrote:
 > Hi
 >
 > Have you ever tried to compile iterate-1.2.lisp [
 > 
http://www-2.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/lisp/code/iter/iterate/0.html 

 > ]
 > in ACL 6.2 ?
 >
 > I did and got an error (...)

Iterate-1.2 is pre-ANSI Common Lisp, has been ported to ANSI CL by 
Andreas Fuchs:

http://boinkor.net/iterate.html

Cheers,

Carlos
From: Vladimir Zolotykh
Subject: Re: ITERATE-1.2.LISP
Date: 
Message-ID: <opr87z5sf28k218c@news.eurocom.od.ua>
On Mon, 07 Jun 2004 10:46:32 +0200, Carlos Ungil <············@cern.ch> 
wrote:

> Iterate-1.2 is pre-ANSI Common Lisp, has been ported to ANSI CL by 
> Andreas Fuchs:
>
> http://boinkor.net/iterate.html

I've tried it (iterate-1.0.7.lisp) and got the same error
Error: DEFCLAUSE: required part of template (FOR var-spec &sequence) is of 
odd length
Have you compiled it ?



-- 
Vladimir Zolotykh 
From: Carlos Ungil
Subject: Re: ITERATE-1.2.LISP
Date: 
Message-ID: <ca1j16$756$1@sunnews.cern.ch>
Vladimir Zolotykh wrote:
>> Iterate-1.2 is pre-ANSI Common Lisp, has been ported to ANSI CL by 
>> Andreas Fuchs: http://boinkor.net/iterate.html 
> I've tried it (iterate-1.0.7.lisp) and got the same error
> Error: DEFCLAUSE: required part of template (FOR var-spec &sequence) is 
> of odd length
> Have you compiled it ?

I've just tried it on Allegro CL [6.2 Trial, Windows], and it seems to 
work (at least it compiles without errors).

CG-USER(1): (load (compile-file "e:/iterate-1.0.7/package.lisp"))
;;; Compiling file e:\iterate-1.0.7\package.lisp
;;; Writing fasl file e:\iterate-1.0.7\package.fasl
;;; Fasl write complete
; Fast loading e:\iterate-1.0.7\package.fasl
T
CG-USER(2): (load (compile-file "e:/iterate-1.0.7/iterate.lisp"))
;;; Compiling file e:\iterate-1.0.7\iterate.lisp
;;; Writing fasl file e:\iterate-1.0.7\iterate.fasl
;;; Fasl write complete
; Fast loading e:\iterate-1.0.7\iterate.fasl
T
CG-USER(3): (in-package :iterate)
#<The ITERATE package>
ITER(4): (iterate (generate i from 0 to 6)
        (for (key . value) in '((a . 2) (zero . 10) (one . 20) (d . 5)))
                   (when (>= value 10)
                     (collect (cons key (next i)))))
((ZERO . 0) (ONE . 1))
From: Vladimir Zolotykh
Subject: Re: ITERATE-1.2.LISP
Date: 
Message-ID: <opr89g3y2f8k218c@news.eurocom.od.ua>
On Mon, 07 Jun 2004 13:20:06 +0200, Carlos Ungil <············@cern.ch> 
wrote:

> I've just tried it on Allegro CL [6.2 Trial, Windows], and it seems to 
> work (at least it compiles without errors).

You're obviously trying under Windows as I were under Slackware 8.1.
And still compiling does give me an error:

$ mlisp
cl-user(1): :cload iterate-1.0.7/package.lisp
;;; Compiling file iterate-1.0.7/package.lisp
;;; Writing fasl file iterate-1.0.7/package.fasl
;;; Fasl write complete
; Fast loading /home/vlz/log/2004/05/29/iterate-1.0.7/package.fasl
cl-user(2): (setq *ignore-package-name-case* t)
t
cl-user(3): :cload iterate-1.0.7/iterate.lisp
;;; Compiling file iterate-1.0.7/iterate.lisp
; While compiling (:top-level-form "iterate.lisp" 82382):
Error: DEFCLAUSE: required part of template (FOR var-spec &sequence) is
        of odd length

The difficulties seem to be unsurmountable :(
-- 
Vladimir Zolotykh 
From: Edi Weitz
Subject: Re: ITERATE-1.2.LISP
Date: 
Message-ID: <874qpmtw22.fsf@bird.agharta.de>
On Tue, 08 Jun 2004 08:49:00 +0300, Vladimir Zolotykh <······@eurocom.od.ua> wrote:

> You're obviously trying under Windows as I were under Slackware 8.1.
> And still compiling does give me an error:
>
> $ mlisp

  ^--- That's the problem.

Try alisp instead.

Edi.
From: Vladimir Zolotykh
Subject: Re: ITERATE-1.2.LISP
Date: 
Message-ID: <opr9c41pwi8k218c@news.eurocom.od.ua>
On Tue, 08 Jun 2004 08:15:17 +0200, Edi Weitz <···@agharta.de> wrote:

>> $ mlisp
>
>   ^--- That's the problem.
>
> Try alisp instead.

It was indeed. Thanks you all. I was almost about to give up my attempts to
get acquainted with the ITERATE



-- 
Vladimir Zolotykh 
From: Christophe Rhodes
Subject: Re: ITERATE-1.2.LISP
Date: 
Message-ID: <sq8yey4a9z.fsf@cam.ac.uk>
Vladimir Zolotykh <······@eurocom.od.ua> writes:

> On Mon, 07 Jun 2004 13:20:06 +0200, Carlos Ungil
> <············@cern.ch> wrote:
>
>> I've just tried it on Allegro CL [6.2 Trial, Windows], and it seems
>> to work (at least it compiles without errors).
>
> You're obviously trying under Windows as I were under Slackware 8.1.
> And still compiling does give me an error:
>
> $ mlisp

This (using an explicitly non-conforming lisp) should be the first
line of suspicion when compilation of allegedly-conforming code fails!

Christophe
-- 
http://www-jcsu.jesus.cam.ac.uk/~csr21/       +44 1223 510 299/+44 7729 383 757
(set-pprint-dispatch 'number (lambda (s o) (declare (special b)) (format s b)))
(defvar b "~&Just another Lisp hacker~%")    (pprint #36rJesusCollegeCambridge)
From: Vladimir Zolotykh
Subject: Re: ITERATE-1.2.LISP
Date: 
Message-ID: <opr9c4gh1v8k218c@news.eurocom.od.ua>
On Mon, 07 Jun 2004 13:20:06 +0200, Carlos Ungil <············@cern.ch> 
wrote:

You're obviously trying under Windows as I were under Slackware 8.1.
And still compiling does give me an error:

$ mlisp
cl-user(1): :cload iterate-1.0.7/package.lisp
;;; Compiling file iterate-1.0.7/package.lisp
;;; Writing fasl file iterate-1.0.7/package.fasl
;;; Fasl write complete
; Fast loading /home/vlz/log/2004/05/29/iterate-1.0.7/package.fasl
cl-user(2): (setq *ignore-package-name-case* t)
t
cl-user(3): :cload iterate-1.0.7/iterate.lisp
;;; Compiling file iterate-1.0.7/iterate.lisp
; While compiling (:top-level-form "iterate.lisp" 82382):
Error: DEFCLAUSE: required part of template (FOR var-spec &sequence) is
        of odd length

The difficulties seem to be unsurmountable :(

-- 
Vladimir Zolotykh 
From: Vladimir Zolotykh
Subject: Re: ITERATE-1.2.LISP
Date: 
Message-ID: <opr9c4l8058k218c@news.eurocom.od.ua>
Please ignore my last (repeated by mistake) message.
I should have not sent it. Sorry

-- 
Vladimir Zolotykh