From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: scm_make_gsubr question Date: 19 Jan 2003 23:55:23 +0000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: <20030119204023.GA22802@masanjin.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043020849 17626 80.91.224.249 (20 Jan 2003 00:00:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2003 00:00:49 +0000 (UTC) Cc: guile-devel@gnu.org 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 18aPMs-0004a2-00 for ; Mon, 20 Jan 2003 01:00:47 +0100 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 18aPLR-00004s-07 for guile-devel@m.gmane.org; Sun, 19 Jan 2003 18:59:17 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18aPJ9-0007CL-00 for guile-devel@gnu.org; Sun, 19 Jan 2003 18:56:55 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18aPIv-0006dZ-00 for guile-devel@gnu.org; Sun, 19 Jan 2003 18:56:44 -0500 Original-Received: from mail.uklinux.net ([80.84.72.21] helo=s1.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18aPIj-000628-00 for guile-devel@gnu.org; Sun, 19 Jan 2003 18:56:29 -0500 Original-Received: from laruns.ossau.uklinux.net (bts-0104.dialup.zetnet.co.uk [194.247.48.104]) by s1.uklinux.net (8.11.6/8.11.6) with ESMTP id h0JNtQf24097; Sun, 19 Jan 2003 23:55:26 GMT Original-Received: from laruns.ossau.uklinux.net.ossau.uklinux.net (localhost [127.0.0.1])ESMTP id E5CAADC4D3; Sun, 19 Jan 2003 23:55:23 +0000 (GMT) Original-To: William Morgan In-Reply-To: <20030119204023.GA22802@masanjin.net> Original-Lines: 27 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 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:1876 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1876 >>>>> "William" == William Morgan writes: William> Is there a way to specify, at the time you call William> scm_make_gsubr, a user data parameter which is passed to William> the corresponding C function? [...] This has just been discussed on guile-user - please see the archives there. (Summary: (i) no (ii) you could use an applicable smob (iii) description of a roundabout way of achieving the same thing.) William> If not, I would like to submit a patch... Please do so; however, here is my view of why we don't already have this (and which may amount to a good reason not to add it - I don't know). - The corresponding operation on the Scheme level is achieved much more elegantly by closure. - There are ways of achieving this on the C level, even if they are a little indirect. (See thread in guile-user.) - The most sensible approach IMO for a Guile-based application is to do the minimum possible in C for the maximum benefit in Scheme. Best regards, Neil _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel