[CM] What is the "normal" way to handle errors for side effect functions in Scheme?

Iain Duncan iainduncanlists at gmail.com
Sun May 17 12:55:14 PDT 2020


Thanks Bill, much appreciated. for the next release with the table and
buffer i/o I'm going to retool various functions to do that and to return
the value being passed through so that they are consistent with how things
like vector-set! and vector->list work.

thanks for the tips!
iain

On Sun, May 17, 2020 at 12:52 PM <bil at ccrma.stanford.edu> wrote:

> That code looks fine to me.  On the scheme side you'll want
> a catch somewhere.  The other common choice is to return some
> error indication, and then the scheme side has to check for
> that.  All the s7 C-library tie-ins (like libgsl) call s7_error.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/mailman/private/cmdist/attachments/20200517/9d91e2fc/attachment.html>


More information about the Cmdist mailing list