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: r6rs libraries Date: Tue, 27 Jan 2009 21:09:29 +0100 Message-ID: <87pri8ik92.fsf@gnu.org> References: <2bc5f8210812271705h3f57cb29w5bb83cb02abe971@mail.gmail.com> <2bc5f8210812282238p1f91f352id7eca5280dc9ff6a@mail.gmail.com> <2bc5f8210901012010g2ebb6effx5c966d0e26fe382b@mail.gmail.com> <8763kt48zi.fsf@gnu.org> <2bc5f8210901111521i1a5ec85em65ee20135cc55ebb@mail.gmail.com> <877i4z89jy.fsf@gnu.org> <2bc5f8210901251627t5d59f9fg5bc5dcceaf2a0b9f@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1233087007 12936 80.91.229.12 (27 Jan 2009 20:10:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2009 20:10:07 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jan 27 21:11:21 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LRuHG-0005DF-0E for guile-devel@m.gmane.org; Tue, 27 Jan 2009 21:11:18 +0100 Original-Received: from localhost ([127.0.0.1]:57813 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRuFy-0002TQ-1p for guile-devel@m.gmane.org; Tue, 27 Jan 2009 15:09:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRuFn-0002JO-Fl for guile-devel@gnu.org; Tue, 27 Jan 2009 15:09:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRuFm-0002I0-Db for guile-devel@gnu.org; Tue, 27 Jan 2009 15:09:46 -0500 Original-Received: from [199.232.76.173] (port=36052 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRuFl-0002He-RS for guile-devel@gnu.org; Tue, 27 Jan 2009 15:09:46 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:35487 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 1LRuFl-0003b3-6J for guile-devel@gnu.org; Tue, 27 Jan 2009 15:09:45 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LRuFf-0005vb-O7 for guile-devel@gnu.org; Tue, 27 Jan 2009 20:09:39 +0000 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jan 2009 20:09:39 +0000 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jan 2009 20:09:39 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 =?iso-8859-1?Q?Pluvi=F4se?= an 217 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.3 (gnu/linux) Cancel-Lock: sha1:sV8caGwSm5iQWeVQc1L1c0rFQ2Q= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:8088 Archived-At: Hello! Andy Wingo writes: > So from 7.2 of R6RS itself: > > An implementation may distinguish instances/visits of a library for > different phases or to use an instance/visit at any phase as an > instance/visit at any other phase. > > Which is to say, "we allow single instantiation" -- as Guile modules > are. [...] > > When an identifier appears as an expression in a phase that is > inconsistent with the identifier’s level, then an implementation > may raise an exception either at expand time or run time, or it may > allow the reference. > > So, furthermore, it seems that not only may library A be instantiated at > runtime, /it may be in library B's "import list" as well/. This is what > happens with Guile's current module semantics. These both come as a surprise to me, as I had always thought R6RS was much stricter about phase separation. That's good news for "pure interpreters"; extra work would still be needed to handle phases > 0 in the compiler. Thanks for the detailed reading! Ludo'.