From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Re: Should we add scm_to_pointer, or just use SCM_POINTER_VALUE? Date: Thu, 02 Feb 2012 17:10:20 -0500 Message-ID: <8739asc2er.fsf@netris.org> References: <87d39zdqhd.fsf@netris.org> <878vkluepk.fsf@gnu.org> 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 1328220734 15872 80.91.229.3 (2 Feb 2012 22:12:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2012 22:12:14 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Feb 02 23:12:13 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rt4t3-0004hD-CA for guile-devel@m.gmane.org; Thu, 02 Feb 2012 23:12:13 +0100 Original-Received: from localhost ([::1]:41021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt4t2-0006N1-QH for guile-devel@m.gmane.org; Thu, 02 Feb 2012 17:12:12 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:48792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt4t0-0006MV-LA for guile-devel@gnu.org; Thu, 02 Feb 2012 17:12:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rt4sz-0004SW-1I for guile-devel@gnu.org; Thu, 02 Feb 2012 17:12:10 -0500 Original-Received: from world.peace.net ([96.39.62.75]:41976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt4sy-0004PE-Un; Thu, 02 Feb 2012 17:12:08 -0500 Original-Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=yeeloong) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1Rt4sj-00049I-9N; Thu, 02 Feb 2012 17:11:53 -0500 In-Reply-To: <878vkluepk.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 02 Feb 2012 22:07:19 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 96.39.62.75 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:13787 Archived-At: ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Adding =E2=80=98scm_to_pointer=E2=80=99 is nice, but =E2=80=98SCM_POINTER= _VALUE=E2=80=99 is also meant > to be public (and should be documented.) Okay. > I=E2=80=99m curious: why would one want to use the FFI=E2=80=99s C API? Apparently he wanted to create a C callback to a Scheme procedure (using procedure->pointer), but wanted to do the rest from C. Mark