From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dirk Herrmann Newsgroups: gmane.lisp.guile.user Subject: Re: Catching error from gh_ function Date: Wed, 26 Jun 2002 18:54:59 +0200 (CEST) Sender: guile-user-admin@gnu.org Message-ID: References: <20020609131416.48290520.hilaire@ext.cri74.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1025110698 23102 127.0.0.1 (26 Jun 2002 16:58:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 26 Jun 2002 16:58:18 +0000 (UTC) Cc: guile-user@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17NG7W-00060V-00 for ; Wed, 26 Jun 2002 18:58:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17NG6V-0007HU-00; Wed, 26 Jun 2002 12:57:15 -0400 Original-Received: from speedy.ida.ing.tu-bs.de ([134.169.132.53]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17NG4L-00075I-00 for ; Wed, 26 Jun 2002 12:55:01 -0400 Original-Received: from cicero.ida.ing.tu-bs.de (cicero [134.169.132.45]) by speedy.ida.ing.tu-bs.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id g5QGt0e21578; Wed, 26 Jun 2002 18:55:00 +0200 Original-Received: from localhost (dirk@localhost) by cicero.ida.ing.tu-bs.de (8.9.3+Sun/8.9.1) with ESMTP id SAA06602; Wed, 26 Jun 2002 18:54:59 +0200 (CEST) Original-To: Hilaire Fernandes In-Reply-To: <20020609131416.48290520.hilaire@ext.cri74.org> Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.user:649 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:649 > 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