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.bugs Subject: bug#17502: R6RS `library' form must have exports before imports Date: Wed, 04 Jun 2014 21:24:28 -0400 Message-ID: <87d2eotagj.fsf@yeeloong.lan> References: <8738ga7o2m.fsf@taylan.uni.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1401931528 4241 80.91.229.3 (5 Jun 2014 01:25:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2014 01:25:28 +0000 (UTC) Cc: 17502@debbugs.gnu.org To: Taylan Ulrich Bayirli/Kammer Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Jun 05 03:25:21 2014 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 1WsMQi-0007zV-0A for guile-bugs@m.gmane.org; Thu, 05 Jun 2014 03:25:20 +0200 Original-Received: from localhost ([::1]:37767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsMQh-0002ev-In for guile-bugs@m.gmane.org; Wed, 04 Jun 2014 21:25:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsMQY-0002db-5P for bug-guile@gnu.org; Wed, 04 Jun 2014 21:25:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsMQQ-00040f-Mx for bug-guile@gnu.org; Wed, 04 Jun 2014 21:25:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsMQQ-00040P-KH for bug-guile@gnu.org; Wed, 04 Jun 2014 21:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WsMQQ-0004Cw-8r for bug-guile@gnu.org; Wed, 04 Jun 2014 21:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 05 Jun 2014 01:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17502 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 17502-submit@debbugs.gnu.org id=B17502.140193150016163 (code B ref 17502); Thu, 05 Jun 2014 01:25:02 +0000 Original-Received: (at 17502) by debbugs.gnu.org; 5 Jun 2014 01:25:00 +0000 Original-Received: from localhost ([127.0.0.1]:44546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsMQN-0004Cc-My for submit@debbugs.gnu.org; Wed, 04 Jun 2014 21:25:00 -0400 Original-Received: from world.peace.net ([96.39.62.75]:45967 ident=hope1) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsMQK-0004CR-VI for 17502@debbugs.gnu.org; Wed, 04 Jun 2014 21:24:57 -0400 Original-Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WsMQD-0004ZB-5X; Wed, 04 Jun 2014 21:24:49 -0400 In-Reply-To: <8738ga7o2m.fsf@taylan.uni.cx> (Taylan Ulrich Bayirli's message of "Thu, 15 May 2014 23:02:25 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:7497 Archived-At: Taylan Ulrich Bayirli/Kammer writes: > The R6RS `library' form requires the (export ...) list to appear > before the (import ...) list. Indeed, good catch! > Here's a corresponding documentation patch against master/3be43fb: We will want to apply this to stable-2.0. > From 7900da779f1ab267481ad1a08a0547083936d11f Mon Sep 17 00:00:00 2001 > From: Taylan Ulrich B > Date: Thu, 15 May 2014 22:55:40 +0200 > Subject: [PATCH] R6RS library documentation fix > > * doc/ref/api-modules.texi: In the R6RS `library' form, exports must > appear before imports. The changelog should briefly describe the changes made. Also, when making changes to texi files, our convention is to include the node name in parentheses before the colon. So maybe something like this: * doc/ref/api-modules.texi (R6RS Libraries): Move 'export' before 'import' in the example library form, as required by the R6RS. > --- > doc/ref/api-modules.texi | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/doc/ref/api-modules.texi b/doc/ref/api-modules.texi > index 286a37d..47171c6 100644 > --- a/doc/ref/api-modules.texi > +++ b/doc/ref/api-modules.texi > @@ -584,8 +584,8 @@ expression: > > @lisp > (library (mylib (1 2)) > - (import (otherlib (3))) > - (export mybinding)) > + (export mybinding) > + (import (otherlib (3)))) > @end lisp > > is equivalent to the module definition: > @@ -597,6 +597,8 @@ is equivalent to the module definition: > #:export (mybinding)) > @end lisp > > +Note that exports must appear before imports in the `library' form. > + I don't think we need to mention this. IMO the R6RS is quite clear, as Dale pointed out. Thanks! Mark