From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lynn Winebarger Newsgroups: gmane.lisp.guile.user Subject: Re: Guile library behaviour Date: Mon, 29 Apr 2002 23:29:09 -0500 Sender: guile-user-admin@gnu.org Message-ID: <0204292329090J.10649@locke.free-expression.org> References: <1019031358.3287.68.camel@tedy> <87bscifjo0.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1020141511 31978 127.0.0.1 (30 Apr 2002 04:38:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 30 Apr 2002 04:38:31 +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 172PPK-0008Jf-00 for ; Tue, 30 Apr 2002 06:38:30 +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 172PHm-000313-00; Tue, 30 Apr 2002 00:30:42 -0400 Original-Received: from janus.hosting4u.net ([209.15.2.37]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 172PGs-0002tE-00 for ; Tue, 30 Apr 2002 00:29:46 -0400 Original-Received: (qmail 17560 invoked from network); 30 Apr 2002 04:29:46 -0000 Original-Received: from leo.hosting4u.net (HELO free-expression.org) (209.15.2.51) by mail-gate.hosting4u.net with SMTP; 30 Apr 2002 04:29:46 -0000 Original-Received: from locke.free-expression.org ([156.56.119.191]) by free-expression.org ; Mon, 29 Apr 2002 23:29:41 -0500 Original-To: Rob Browning , Daniel CAUNE X-Mailer: KMail [version 1.2] In-Reply-To: <87bscifjo0.fsf@raven.i.defaultvalue.org> X-Rcpt-To: Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.9 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:374 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:374 On Wednesday 17 April 2002 10:07, Rob Browning wrote: > The original reason for this is just as Lynn explained it -- this used > to be the only way guile could portably find the bottom of the stack. > Also note that as things stand now, you can only run one copy of guile > inside any given app. > > In general, if you're the one designing the app, the requirement that > guile be handed your real main function isn't a big deal, but in some > cases this isn't possible. Fortunately, in more recent versions of > guile, clever people have figured out a fairly portable way to find > the bottom of the stack, and so on those platforms, you can use > scm_init_guile, which will return, and then you can go do whatever > else you want in your code. Mea culpa. They are clever, that's for sure. The heuristic that crawls up the stack until it causes a segmentation fault or bus error - that's the good stuff. Lynn _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user