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: Hook change hook? Date: 14 Mar 2002 20:48:56 +0000 Sender: guile-devel-admin@gnu.org Message-ID: References: <87ofigytfl.fsf@zagadka.ping.de> <87pu27x722.fsf@zagadka.ping.de> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1016149161 27627 127.0.0.1 (14 Mar 2002 23:39:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 14 Mar 2002 23:39:21 +0000 (UTC) Cc: Guile Development Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16leoa-0007BV-00 for ; Fri, 15 Mar 2002 00:39:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16leoL-0000y8-00; Thu, 14 Mar 2002 18:39:05 -0500 Original-Received: from mail.uklinux.net ([80.84.72.21] helo=s1.uklinux.net) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16lenP-0000vl-00 for ; Thu, 14 Mar 2002 18:38:08 -0500 Original-Received: from portalet.ossau.uklinux.net (IDENT:root@ppp-4a-69.3com.telinco.net [212.159.134.69]) by s1.uklinux.net (8.11.6/8.11.6) with ESMTP id g2ENb4g15744; Thu, 14 Mar 2002 23:37:06 GMT Original-Received: from laruns.ossau.uklinux.net.ossau.uklinux.net (neil@laruns.ossau.uklinux.net [192.168.1.3]) by portalet.ossau.uklinux.net (8.9.3/8.8.7) with ESMTP id UAA15579; Thu, 14 Mar 2002 20:52:03 GMT Original-To: Marius Vollmer In-Reply-To: <87pu27x722.fsf@zagadka.ping.de> Original-Lines: 33 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:53 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:53 >>>>> "Marius" == Marius Vollmer writes: Marius> Neil Jerram writes: >> For a clean solution I guess we should either add a new >> scm_tc7_subr_3o type to the code (scary), or support genericization >> of cclos (also scary). Marius> We should do the latter. I'll look at this and let you know when I Marius> have something. Thanks. >> PS. For future reference, here's the SCM_GDEFINE definition that I >> added to snarf.h to try this out: >> >> #define SCM_GDEFINE(FNAME, PRIMNAME, REQ, OPT, VAR, ARGLIST, DOCSTRING) \ >> SCM_SNARF_HERE(\ >> static const char s_ ## FNAME [] = PRIMNAME; \ >> static SCM g_ ## FNAME; \ >> SCM FNAME ARGLIST\ >> )\ >> SCM_SNARF_INIT(\ >> scm_c_define_gsubr_with_generic (s_ ## FNAME, REQ, OPT, VAR, \ >> (SCM_FUNC_CAST_ARBITRARY_ARGS) FNAME, \ >> & g_ ## FNAME); \ Marius> Don't you need to initialize g_FNAME before calling Marius> scm_c_define_gsubr_with_generic? Yes, good spot. (I didn't get as far as hitting this, 'cos my modified guile failed in initialization.) Neil _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel