From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bruce Korb Newsgroups: gmane.lisp.guile.devel Subject: Re: No way out. Date: Sun, 4 Dec 2005 20:35:30 -0800 Organization: GNU Message-ID: <200512042035.30242.bkorb@gnu.org> References: <200511301616.22258.bkorb@gnu.org> <87lkz5mysf.fsf@zip.com.au> <200512042008.00333.bkorb@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133757356 30788 80.91.229.2 (5 Dec 2005 04:35:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Dec 2005 04:35:56 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Dec 05 05:35:54 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ej84V-0006lG-I2 for guile-devel@m.gmane.org; Mon, 05 Dec 2005 05:35:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ej84c-0008O9-RS for guile-devel@m.gmane.org; Sun, 04 Dec 2005 23:35:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ej84Z-0008Na-LR for guile-devel@gnu.org; Sun, 04 Dec 2005 23:35:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ej84Y-0008N3-31 for guile-devel@gnu.org; Sun, 04 Dec 2005 23:35:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ej84X-0008N0-VL for guile-devel@gnu.org; Sun, 04 Dec 2005 23:35:30 -0500 Original-Received: from [207.115.63.77] (helo=pimout1-ext.prodigy.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ej84z-0006Ql-41 for guile-devel@gnu.org; Sun, 04 Dec 2005 23:35:57 -0500 X-ORBL: [69.226.209.231] Original-Received: from [192.168.1.4] (adsl-69-226-209-231.dsl.pltn13.pacbell.net [69.226.209.231]) by pimout1-ext.prodigy.net (8.13.4 outbound domainkey aix/8.13.4) with ESMTP id jB54ZKU8185186 for ; Sun, 4 Dec 2005 23:35:21 -0500 Original-To: guile-devel@gnu.org User-Agent: KMail/1.7.1 In-Reply-To: <200512042008.00333.bkorb@gnu.org> Content-Disposition: inline X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5454 Archived-At: On Sunday 04 December 2005 08:08 pm, Bruce Korb wrote: > Anyway, *real bugs* in Guile 1.7.2 are: > > 1. When an error is thrown, "exit" should be called with EXIT_FAILURE, not 0. The problem here is that the doc for "gh_enter()" (and successors?) says that it does not return. It does. The error handling long jumps around my inner main and returns back to real main. Oops. -- Function: void gh_enter (int ARGC, char *ARGV[], void (*MAIN_PROG)(int, char**)) Starts up a Scheme interpreter with all the builtin Scheme primitives. `gh_enter()' never exits, and the user's code should all be in the `MAIN_PROG()' function. `argc' and `argv' will be passed to MAIN_PROG. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel