unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Dirk Herrmann <dirk@ida.ing.tu-bs.de>
Cc: guile-user@gnu.org
Subject: Re: Catching error from gh_ function
Date: Wed, 26 Jun 2002 18:54:59 +0200 (CEST)	[thread overview]
Message-ID: <Pine.GSO.4.05.10206261845140.6547-100000@cicero.ida.ing.tu-bs.de> (raw)
In-Reply-To: <20020609131416.48290520.hilaire@ext.cri74.org>

> How to catch error emitted within gh_ procedure
> 
> I want to catch error as:
> ERROR: In procedure gh_scm2double:
> ERROR: Wrong type argument: 0.732720803902192+3.14159265358979i
> 
> It looks like I should use scm_internal_catch or scm_lazy_catch but I did not find 
> documentation about that. Just example code in available application will 
> be enought to help me.

Sorry for answering late.  However, I don't have good examples for you,
but I suggest to look for uses of scm_internal_catch within guile itself.
For example, in environments.c there is some code using it, also in
numbers.c and some other places.

If you still have difficulties to understand it, tell me and I will go and
try to write something up - it is some time ago since I used that
function.  If, however, you figure it out, it would be nice if you could
submit some documentation for it.

Thanks,
Dirk Herrmann


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


      reply	other threads:[~2002-06-26 16:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-09 11:14 Catching error from gh_ function Hilaire Fernandes
2002-06-26 16:54 ` Dirk Herrmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.05.10206261845140.6547-100000@cicero.ida.ing.tu-bs.de \
    --to=dirk@ida.ing.tu-bs.de \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).