On Thu, 4 Aug 2005 14:41:25 +0200 felix winkelmann <[EMAIL PROTECTED]> 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 (...do something with the exception in "ex" ...)
> (read) )
Shouldn't it be `handle-exceptions'?
^
Mario
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users