From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludovic.courtes@laas.fr (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: saving and restoring the error stack trace Date: Fri, 01 Sep 2006 11:39:45 +0200 Organization: LAAS-CNRS Message-ID: <87psegudr2.fsf@laas.fr> References: <87veo8av0e.fsf@ossau.uklinux.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157103657 20998 80.91.229.2 (1 Sep 2006 09:40:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Sep 2006 09:40:57 +0000 (UTC) Cc: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Sep 01 11:40:53 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GJ5Vu-0000uM-6P for guile-user@m.gmane.org; Fri, 01 Sep 2006 11:40:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJ5Vt-0004sY-Or for guile-user@m.gmane.org; Fri, 01 Sep 2006 05:40:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GJ5Vq-0004sF-35 for guile-user@gnu.org; Fri, 01 Sep 2006 05:40:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GJ5Vo-0004rv-Hw for guile-user@gnu.org; Fri, 01 Sep 2006 05:40:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJ5Vo-0004rs-F8 for guile-user@gnu.org; Fri, 01 Sep 2006 05:40:32 -0400 Original-Received: from [140.93.0.15] (helo=laas.laas.fr) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GJ5fc-0005T3-T7 for guile-user@gnu.org; Fri, 01 Sep 2006 05:50:41 -0400 Original-Received: by laas.laas.fr (8.13.7/8.13.4) with SMTP id k819eOVu019714; Fri, 1 Sep 2006 11:40:26 +0200 (CEST) Original-To: Neil Jerram X-URL: http://www.laas.fr/~lcourtes/ X-Revolutionary-Date: 15 Fructidor an 214 de la =?iso-8859-1?Q?R=E9volutio?= =?iso-8859-1?Q?n?= X-PGP-Key-ID: 0xEB1F5364 X-PGP-Key: http://www.laas.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: powerpc-unknown-linux-gnu Mail-Followup-To: Neil Jerram , "Marco Maggi" , guile-user In-Reply-To: <87veo8av0e.fsf@ossau.uklinux.net> (Neil Jerram's message of "Fri, 01 Sep 2006 08:47:13 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Spam-Score: 0 () X-Scanned-By: MIMEDefang at CNRS-LAAS X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5487 Archived-At: Hi, Neil Jerram writes: >> and that the args content >> is not explicitly documented (that is, I was not >> able to find it) even if its content is well defined >> in 'scm_error_scm()': >> >> scm_ithrow (key, >> scm_list_4 (subr, message, args, data), 1); > > Yes, here I completely agree with you. I've been wondering what to do > about this for ages. Do you think it can be solved adequately by > precise documentation, or do we need some way of describing the > expected throw args in code; perhaps even construct some kind of > object model around the args with methods for getting the useful bits > of information out? (Use of which would be optional.) Indeed, this exception model is not very convenient. In some cases, it's even hardly usable, as examplified by the `test-suite/lib.scm' hacks (use of regexps to parse exception messages and determine their meaning...). Ideally, Guile should use some SRFI-3[56]-like mechanism to represent exceptions. Unfortunately, I don't think this could be done without breaking compatibility. In any case, documenting the exceptions thrown by the built-in procedures would certainly help. Thanks, Ludovic. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user