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
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
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
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))
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
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.
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
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)
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