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.devel Subject: Re: scm_to_pointer vs scm->pointer Date: Thu, 05 Jul 2012 18:11:51 +0200 Message-ID: <87a9ze2nnc.fsf@gnu.org> References: <871uktsv1n.fsf@pobox.com> <871uksms9d.fsf@gnu.org> <87k3yja6ae.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1341504732 23818 80.91.229.3 (5 Jul 2012 16:12:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2012 16:12:12 +0000 (UTC) Cc: "Mark H. Weaver" , guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jul 05 18:12:10 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Smoey-00076m-MM for guile-devel@m.gmane.org; Thu, 05 Jul 2012 18:12:04 +0200 Original-Received: from localhost ([::1]:58151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Smoex-0005Kf-GE for guile-devel@m.gmane.org; Thu, 05 Jul 2012 12:12:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Smoeq-0005K9-Oz for guile-devel@gnu.org; Thu, 05 Jul 2012 12:12:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Smoep-0005uE-2f for guile-devel@gnu.org; Thu, 05 Jul 2012 12:11:56 -0400 Original-Received: from xanadu.aquilenet.fr ([88.191.123.111]:58644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Smoeo-0005u2-Sp for guile-devel@gnu.org; Thu, 05 Jul 2012 12:11:54 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 715FEA213; Thu, 5 Jul 2012 18:11:52 +0200 (CEST) Original-Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pXCNf+sVsm9q; Thu, 5 Jul 2012 18:11:52 +0200 (CEST) Original-Received: from pluto (unknown [193.50.110.130]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id 3D0D41262; Thu, 5 Jul 2012 18:11:52 +0200 (CEST) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 18 Messidor an 220 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: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <87k3yja6ae.fsf@pobox.com> (Andy Wingo's message of "Wed, 04 Jul 2012 17:35:05 +0200") User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 88.191.123.111 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:14710 Archived-At: Hi, Andy Wingo skribis: > On Tue 03 Jul 2012 23:47, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >>> This should be fixed. Otherwise it's impossible to document in any >>> sane fashion. >>> >>> Suggestion: change scm_to_pointer to SCM_POINTER_VALUE. WDYT? >> >> I=E2=80=99m happy with this change. Mark? >> >> (Back then, I was skeptical about the usefulness of the C pointer API. >> I have since used =E2=80=98SCM_POINTER_VALUE=E2=80=99 and =E2=80=98scm_f= rom_pointer=E2=80=99 in >> Guile-GCC, which uses a mixed dynamic/static FFI, and for good reasons.) > > On second thought, let's leave it in. It is terribly confusing, but > alternatives are worse. We could also document =E2=80=98SCM_POINTER_VALUE=E2=80=99, WDYT? Ludo=E2=80=99.