From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joris van der Hoeven Newsgroups: gmane.lisp.guile.devel Subject: Re: PLEASE: debugging embedded guile code Date: Sat, 26 Apr 2003 17:40:52 +0200 (CEST) Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1051371676 14895 80.91.224.249 (26 Apr 2003 15:41:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 26 Apr 2003 15:41:16 +0000 (UTC) Cc: Guile Development Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Apr 26 17:41:14 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 199Rnd-0003s0-00 for ; Sat, 26 Apr 2003 17:41:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 199Rnu-0001Fh-0A for guile-devel@m.gmane.org; Sat, 26 Apr 2003 11:41:30 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 199RnY-000194-00 for guile-devel@gnu.org; Sat, 26 Apr 2003 11:41:08 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 199RnS-0000pz-00 for guile-devel@gnu.org; Sat, 26 Apr 2003 11:41:02 -0400 Original-Received: from matups.math.u-psud.fr ([129.175.50.4]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 199RnO-0000Oe-00 for guile-devel@gnu.org; Sat, 26 Apr 2003 11:40:58 -0400 Original-Received: from anh.math.u-psud.fr (sunanh.math.u-psud.fr [129.175.50.1]) h3QFeq8W023465 ; Sat, 26 Apr 2003 17:40:52 +0200 (MEST) Original-Received: by anh.math.u-psud.fr (Postfix, from userid 8116) id A13ECC00F; Sat, 26 Apr 2003 17:40:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by anh.math.u-psud.fr (Postfix) with ESMTP id 9877B58D6; Sat, 26 Apr 2003 17:40:52 +0200 (CEST) X-X-Sender: Original-To: Neil Jerram In-Reply-To: Original-cc: "Dale P. Smith" Original-cc: contact@texmacs.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2216 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2216 On 26 Apr 2003, Neil Jerram wrote: > >>>>> "Joris" == Joris van der Hoeven writes: > > >> I'm curious about this because the question of error handling keeps > >> popping up and I'm wondering whether our current solution is good > >> enough. (With a strong suspicion that it isn't.) > >> > >> One thing I'm not sure I understand is why you want (or perhaps need) > >> to do this lazy-catch in C rather than in Scheme, since it would be > >> much easier in Scheme. Can you explain? > > Joris> I now have something more or less satisfactory for myself. > > Using lazy-catch? Yes. > Joris> One of the most important shortcomings of the current > Joris> situation is probably poor documentation. In particular, I > Joris> think that the manual should contain an example how to deal > Joris> with detailed error handling. > > I agree, but I also think that the lazy-catch mechanism is more tricky > than it needs to be, especially in C. So I'd like to get the > mechanism right first and then document it. We now started to use lazy-catch more and more, but we might still change that. Can you tell us what you have in mind? > Joris> I also think that there you might add some scheme routines > Joris> to construct comprehensive error messages from error > Joris> objects. This would allow me to print these messages in a > Joris> popup window or include them in a status buffer. I > Joris> currently print everything to standard output or error... > > I think I understand, but can you give an example? You might for instance provide routines (error->message error-obj) (error->backtrace error-obj) (error->source error-obj) (error->file-name error-obj) (error->line-number error-obj) etc. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel