From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mikael Djurfeldt Newsgroups: gmane.lisp.guile.devel Subject: Re: scm_make_gsubr question Date: Mon, 20 Jan 2003 10:00:48 +0100 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: <20030119204023.GA22802@masanjin.net> Reply-To: djurfeldt@nada.kth.se NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043053257 3920 80.91.224.249 (20 Jan 2003 09:00:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2003 09:00:57 +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 18aXnb-00010w-00 for ; Mon, 20 Jan 2003 10:00:55 +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 18aXoT-0005om-05 for guile-devel@m.gmane.org; Mon, 20 Jan 2003 04:01:49 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18aXns-00056K-00 for guile-devel@gnu.org; Mon, 20 Jan 2003 04:01:12 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18aXno-00053Y-00 for guile-devel@gnu.org; Mon, 20 Jan 2003 04:01:09 -0500 Original-Received: from kvast.blakulla.net ([213.212.20.77]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18aXnm-0004zw-00 for guile-devel@gnu.org; Mon, 20 Jan 2003 04:01:07 -0500 Original-Received: from dyna224-226.nada.kth.se ([130.237.224.226] helo=linnaeus) by kvast.blakulla.net with esmtp (Exim 3.36 #1 (Debian)) id 18aXnY-0001rE-00; Mon, 20 Jan 2003 10:00:52 +0100 Original-Received: from mdj by linnaeus with local (Exim 3.36 #1 (Debian)) id 18aXnV-0000Je-00; Mon, 20 Jan 2003 10:00:49 +0100 Original-To: Neil Jerram In-Reply-To: (Neil Jerram's message of "19 Jan 2003 23:55:23 +0000") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) Original-cc: djurfeldt@nada.kth.se Original-cc: William Morgan 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:1879 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1879 Neil Jerram writes: >>>>>> "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). I don't think it's a good idea to add this to gsubrs. We already have three different ways to do it: 1. applicable smobs 2. compiled closures (cclo) 3. entities and operators (applicable structs) Of these, 1 and 2 are easy to do from C. M _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel