From: ··········@gmail.com
Subject: using handler-case
Date: 
Message-ID: <1161639025.040787.173790@f16g2000cwb.googlegroups.com>
Hi,

I'm am new to lisp and wonder how to use (handler-case ...) on gcl.
This is not about the syntax, I got that.

But when I try to call (handler-case ...) on gcl it keeps saying that
HANDLER-CASE is undefined. I used it before on clisp and it worked
fine.

Did I miss something?

Help appreciated!
Knot

From: Pascal Bourguignon
Subject: Re: using handler-case
Date: 
Message-ID: <871woyso7h.fsf@thalassa.informatimago.com>
··········@gmail.com writes:

> Hi,
>
> I'm am new to lisp and wonder how to use (handler-case ...) on gcl.
> This is not about the syntax, I got that.
>
> But when I try to call (handler-case ...) on gcl it keeps saying that
> HANDLER-CASE is undefined. I used it before on clisp and it worked
> fine.
>
> Did I miss something?

Perhaps.


GCL (GNU Common Lisp)  2.6.7 ANSI    Aug 31 2005 23:47:34
Source License: LGPL(gcl,gmp), GPL(unexec,bfd)
Binary License:  GPL due to GPL'ed components: (READLINE UNEXEC)
Modifications of this banner must retain notice of a compatible license
Dedicated to the memory of W. Schelter

Use (help) to get some basic information on how to use GCL.

>(handler-case (error "Bad bad bad") (error (err) (princ err) :got-error))
Bad bad bad
:GOT-ERROR

>(quit)

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
Until real software engineering is developed, the next best practice
is to develop with a dynamic system that has extreme late binding in
all aspects. The first system to really do this in an important way
is Lisp. -- Alan Kay
From: ··········@gmail.com
Subject: Re: using handler-case
Date: 
Message-ID: <1161640369.685605.241460@f16g2000cwb.googlegroups.com>
Thanks!
I fixed it.

Knot

Pascal Bourguignon wrote:
> ··········@gmail.com writes:
>
> > Hi,
> >
> > I'm am new to lisp and wonder how to use (handler-case ...) on gcl.
> > This is not about the syntax, I got that.
> >
> > But when I try to call (handler-case ...) on gcl it keeps saying that
> > HANDLER-CASE is undefined. I used it before on clisp and it worked
> > fine.
> >
> > Did I miss something?
>
> Perhaps.
>
>
> GCL (GNU Common Lisp)  2.6.7 ANSI    Aug 31 2005 23:47:34
> Source License: LGPL(gcl,gmp), GPL(unexec,bfd)
> Binary License:  GPL due to GPL'ed components: (READLINE UNEXEC)
> Modifications of this banner must retain notice of a compatible license
> Dedicated to the memory of W. Schelter
>
> Use (help) to get some basic information on how to use GCL.
>
> >(handler-case (error "Bad bad bad") (error (err) (princ err) :got-error))
> Bad bad bad
> :GOT-ERROR
>
> >(quit)
>
> --
> __Pascal Bourguignon__                     http://www.informatimago.com/
> Until real software engineering is developed, the next best practice
> is to develop with a dynamic system that has extreme late binding in
> all aspects. The first system to really do this in an important way
> is Lisp. -- Alan Kay
From: Pascal Costanza
Subject: Re: using handler-case
Date: 
Message-ID: <4q4s1cFlemcmU1@individual.net>
··········@gmail.com wrote:
> Hi,
> 
> I'm am new to lisp and wonder how to use (handler-case ...) on gcl.
> This is not about the syntax, I got that.
> 
> But when I try to call (handler-case ...) on gcl it keeps saying that
> HANDLER-CASE is undefined. I used it before on clisp and it worked
> fine.
> 
> Did I miss something?

Maybe this is a case where ANSI compatibility is lacking. GCL aims at 
full ANSI compliance (?) for version 2.70, so you might want to check 
for a recent version of GCL and make sure that you indeed use ANSI mode, 
or so.

Note that I am only wildly speculating. I don't use GCL on a regular 
basis, so the details of my statements above are probably wrong. But 
there have been issues with ANSI compatibility in the past, that's why I 
mention this as something you might want to check.


Pascal

-- 
My website: http://p-cos.net
Common Lisp Document Repository: http://cdr.eurolisp.org
Closer to MOP & ContextL: http://common-lisp.net/project/closer/