From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: gh_new_procedure with c++ Date: Mon, 23 Jun 2008 13:47:44 +0200 Message-ID: <87zlpc74pr.fsf@gnu.org> References: <270252.38285.qm@web26905.mail.ukl.yahoo.com> <87lk0w8oay.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1214221701 16524 80.91.229.12 (23 Jun 2008 11:48:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2008 11:48:21 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jun 23 13:49:06 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KAkXa-0008Fy-Cx for guile-user@m.gmane.org; Mon, 23 Jun 2008 13:48:58 +0200 Original-Received: from localhost ([127.0.0.1]:48089 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAkWl-0003Hu-75 for guile-user@m.gmane.org; Mon, 23 Jun 2008 07:48:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAkWf-0003Gj-6o for guile-user@gnu.org; Mon, 23 Jun 2008 07:48:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAkWc-0003F0-Kt for guile-user@gnu.org; Mon, 23 Jun 2008 07:47:59 -0400 Original-Received: from [199.232.76.173] (port=54723 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAkWc-0003Eb-4b for guile-user@gnu.org; Mon, 23 Jun 2008 07:47:58 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:49073 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KAkWa-0005ne-1o for guile-user@gnu.org; Mon, 23 Jun 2008 07:47:56 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KAkWW-0008MC-6v for guile-user@gnu.org; Mon, 23 Jun 2008 11:47:52 +0000 Original-Received: from 193.50.110.161 ([193.50.110.161]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Jun 2008 11:47:52 +0000 Original-Received: from ludo by 193.50.110.161 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Jun 2008 11:47:52 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.50.110.161 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 Messidor an 216 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: i686-pc-linux-gnu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:Lecv5Btx6FXcCH8FyJE4Z/LvGHw= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6615 Archived-At: Hi, ludo@gnu.org (Ludovic Courtès) writes: > This is because the argument to `gh_new_procedure ()' is *not* a > zero-argument function, but a function with *any* number of arguments. > Until the C99 standard (included), "void (* foo) ()" means "pointer to a > function taking any number of arguments"; in C++, it means "pointer to a > function with no arguments". Future C standards will probably follow > C++ on that, as noted in the "Future Language Directions" of C99 > (Section 6.11.6): > > The use of function declarators with empty parentheses (not > prototype-format parameter type declarators) is an obsolescent > feature. > > This means Guile will eventually have to find another solution. I just filed a bug: https://savannah.gnu.org/bugs/index.php?23681 Thanks, Ludovic.