From: Jae Oh
Subject: GNU Common Lisp (trouble using loop construct)
Date: 
Message-ID: <39AB18E9.7733F0DD@twcny.rr.com>
Hi I have installed GNU GCL and it works fine, except the case, for
example,

(defun length4 (list)
(loop for element in list count t))

When I try to use the function length, I get

Error: The variable FOR is unbound.
Fast links are on: do (si::use-fast-links nil) for debugging
Error signalled by LOOP.
Broken at LOOP.  Type :H for Help.

The smae problem with loop-until, etc.

Any ideas?

Thanks,

-Jae

From: Rob Linwood
Subject: Re: GNU Common Lisp (trouble using loop construct)
Date: 
Message-ID: <4wQq5.19$CH4.294@typhoon.nyu.edu>
In article <·················@twcny.rr.com>, Jae Oh
<········@twcny.rr.com> wrote:

> The smae problem with loop-until, etc.
> 
> Any ideas?
> 
> Thanks,
> 
> -Jae
> 

Try using CLISP (http://clisp.sourceforge.net/) instead.  I tested your
example, and it worked fine.  In addition, CLISP is still being actively
developed, while AFAIK GCL isn't.

--
Rob Linwood -- ······@see-header.edu
http://auntfloyd.com/rob/
From: Wolfhard Bu�
Subject: Re: GNU Common Lisp (trouble using loop construct)
Date: 
Message-ID: <m3aedwweem.fsf@minka.katzen.ol>
Jae Oh <········@twcny.rr.com> writes:

> Hi I have installed GNU GCL and it works fine, except the case, for
> example,
> 
> (defun length4 (list)
> (loop for element in list count t))

In gcl 2.3 the sloop package provides the sloop macro which
doesn't conform to the loop of the standard. Look at sloop.lsp.

Anyway, you can say:

(require "SLOOP")
(use-package "SLOOP")
(sloop for i in '(Common Lisp is a rich Language) count t)


-wb
From: Raymond Toy
Subject: Re: GNU Common Lisp (trouble using loop construct)
Date: 
Message-ID: <4nwvh0i8m5.fsf@rtp.ericsson.se>
>>>>> "Wolfhard" == Wolfhard Bu� <·····@gmx.net> writes:

    Wolfhard> Jae Oh <········@twcny.rr.com> writes:
    >> Hi I have installed GNU GCL and it works fine, except the case, for
    >> example,
    >> 
    >> (defun length4 (list)
    >> (loop for element in list count t))

    Wolfhard> In gcl 2.3 the sloop package provides the sloop macro which
    Wolfhard> doesn't conform to the loop of the standard. Look at sloop.lsp.

    Wolfhard> Anyway, you can say:

    Wolfhard> (require "SLOOP")
    Wolfhard> (use-package "SLOOP")
    Wolfhard> (sloop for i in '(Common Lisp is a rich Language) count t)


You can also get a real loop implementation from the CMU AI Archives.
I've done this and it works.

Ray
From: Marco Antoniotti
Subject: Re: GNU Common Lisp (trouble using loop construct)
Date: 
Message-ID: <y6ck8d06ojk.fsf@octagon.mrl.nyu.edu>
Raymond Toy <···@rtp.ericsson.se> writes:

> >>>>> "Wolfhard" == Wolfhard Bu� <·····@gmx.net> writes:
> 
>     Wolfhard> Jae Oh <········@twcny.rr.com> writes:
>     >> Hi I have installed GNU GCL and it works fine, except the case, for
>     >> example,
>     >> 
>     >> (defun length4 (list)
>     >> (loop for element in list count t))
> 
>     Wolfhard> In gcl 2.3 the sloop package provides the sloop macro which
>     Wolfhard> doesn't conform to the loop of the standard. Look at sloop.lsp.
> 
>     Wolfhard> Anyway, you can say:
> 
>     Wolfhard> (require "SLOOP")
>     Wolfhard> (use-package "SLOOP")
>     Wolfhard> (sloop for i in '(Common Lisp is a rich Language) count t)
> 
> 
> You can also get a real loop implementation from the CMU AI Archives.
> I've done this and it works.

You can also dump GCL and get a better CL.

Cheers

-- 
Marco Antoniotti =============================================================
NYU Bioinformatics Group			 tel. +1 - 212 - 998 3488
719 Broadway 12th Floor                          fax  +1 - 212 - 995 4122
New York, NY 10003, USA				 http://galt.mrl.nyu.edu/valis