[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] catch read & load errors?

From: Mario Domenech Goulart
Subject: Re: [Chicken-users] catch read & load errors?
Date: Thu, 04 Aug 2005 23:22:40 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

On Thu, 4 Aug 2005 14:41:25 +0200 felix winkelmann <address@hidden> wrote:

>> I'm wondering, though, is it possible to catch the errors generated
>> by functions like read or load when they encounter bad syntax? I'd
>> like to be able to use read to parse things or load to load files
>> from within my program, but I can't do that if bad user input will
>> just terminate my program. Or is there a different way to do this?
> You could simply use exception-handling:
> (handle-exception ex ( something with the exception in "ex" ...)
>   (read) )

Shouldn't it be `handle-exceptions'?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]