From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexei Matveev Newsgroups: gmane.lisp.guile.bugs Subject: bug#10974: guile-user@gnu.org Date: Mon, 2 Jul 2012 12:15:46 +0200 Message-ID: References: <87wr2mv6y4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1341224209 1634 80.91.229.3 (2 Jul 2012 10:16:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2012 10:16:49 +0000 (UTC) Cc: 10974@debbugs.gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , guile-devel Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Jul 02 12:16:46 2012 Return-path: Envelope-to: guile-bugs@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 1SldgT-0003m5-8O for guile-bugs@m.gmane.org; Mon, 02 Jul 2012 12:16:45 +0200 Original-Received: from localhost ([::1]:36898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SldgS-0000py-6g for guile-bugs@m.gmane.org; Mon, 02 Jul 2012 06:16:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SldgL-0000oz-BH for bug-guile@gnu.org; Mon, 02 Jul 2012 06:16:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SldgB-0006qW-KI for bug-guile@gnu.org; Mon, 02 Jul 2012 06:16:36 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59958) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SldgB-0006qI-Dd for bug-guile@gnu.org; Mon, 02 Jul 2012 06:16:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Sldkb-0005vl-Tp for bug-guile@gnu.org; Mon, 02 Jul 2012 06:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alexei Matveev Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 02 Jul 2012 10:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10974 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 10974-submit@debbugs.gnu.org id=B10974.134122442522745 (code B ref 10974); Mon, 02 Jul 2012 10:21:01 +0000 Original-Received: (at 10974) by debbugs.gnu.org; 2 Jul 2012 10:20:25 +0000 Original-Received: from localhost ([127.0.0.1]:41265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sldk1-0005uo-Di for submit@debbugs.gnu.org; Mon, 02 Jul 2012 06:20:25 -0400 Original-Received: from mail-gg0-f172.google.com ([209.85.161.172]:47578) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sldk0-0005uh-4A for 10974@debbugs.gnu.org; Mon, 02 Jul 2012 06:20:24 -0400 Original-Received: by ggnc4 with SMTP id c4so3900784ggn.3 for <10974@debbugs.gnu.org>; Mon, 02 Jul 2012 03:15:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=9e3oZbAO0fLroJ8PhwFFKoIRH096lGI+HI5uec/omiU=; b=wmjMGgDiE86FsftTvnkj2SPmlafn4Ai9PZEK6WN7gGUIa1YzESijoH+NvyalgDjxlx iZ21EgIc492cJiwJcw44BfSNrl8WYU0i1Lpy/bALwNLH5mwbX+FBdflBrNoXpw6D8+jf /IqfIEAuqWDrFshKqvCnDR3NnMfEmzw9fGSOpBpk7RvoEQS1Xw1BR7FMvwq9WEEiTqGA 1ApmK4rdSESPRDZnHeNFwdcf8Oy0U4T22zTgCMdG61VyeqVlVSW++Z7TY4gMDbnxPiar BdA9p9gB+Q3pB0LxcAzsfvkam3y06/7OryZDsDSTMQw1HoygPVbb8tW+VT0HCnolDYOC qDqg== Original-Received: by 10.50.220.136 with SMTP id pw8mr6924467igc.1.1341224146490; Mon, 02 Jul 2012 03:15:46 -0700 (PDT) Original-Received: by 10.231.43.208 with HTTP; Mon, 2 Jul 2012 03:15:46 -0700 (PDT) In-Reply-To: <87wr2mv6y4.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6371 Archived-At: On Mon, Jul 2, 2012 at 11:38 AM, Ludovic Court=E8s wrote: > >> For use from a Fortran program I am collecting API fixes for libguile.so >> as wrapper functions for what is provided to C-programs as macros. >> I noted that some of the macros are function-macros some are symbol >> macros. An example of the latter is >> >> =A0 #define scm_to_int scm_to_int23 > > The macros in numbers.h that are =93symbol macros=94, such as > =91scm_from_int=92, allow users to write code like: > > =A0 &scm_from_int > > This wouldn=92t be possible if these were function macros. > > Thus, I think things will have to remain this way. Hi, It's ok. You may close it. I still think it could be less confusing if the libguile.so implemented/pro= vided functions as advertised in Guile API docs for the sake of interfacing to languages other than C. And &scm_from_int wold also work if it were a real function. But there are many more macros, so such a link-time interface would be a lot of work, I realize by now. Alexei