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.user Subject: Re: srfi-88 keyword / symbol ambiguity Date: Mon, 21 Jul 2008 12:04:05 +0200 Message-ID: <87r69neep6.fsf@gnu.org> References: <2bc5f8210807201335v3f2ceaf0lb250c35b54ff4727@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216634713 28544 80.91.229.12 (21 Jul 2008 10:05:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2008 10:05:13 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jul 21 12:06:02 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KKsHE-0002Oa-6H for guile-user@m.gmane.org; Mon, 21 Jul 2008 12:05:56 +0200 Original-Received: from localhost ([127.0.0.1]:33191 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKsGI-0006Np-M7 for guile-user@m.gmane.org; Mon, 21 Jul 2008 06:04:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KKsFn-0006Mi-73 for guile-user@gnu.org; Mon, 21 Jul 2008 06:04:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KKsFk-0006M5-S8 for guile-user@gnu.org; Mon, 21 Jul 2008 06:04:26 -0400 Original-Received: from [199.232.76.173] (port=44101 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKsFj-0006Lf-H6 for guile-user@gnu.org; Mon, 21 Jul 2008 06:04:24 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:44682 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 1KKsFi-0001bs-Sh for guile-user@gnu.org; Mon, 21 Jul 2008 06:04:23 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KKsFc-0005iw-VE for guile-user@gnu.org; Mon, 21 Jul 2008 10:04:17 +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 ; Mon, 21 Jul 2008 10:04:16 +0000 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Jul 2008 10:04:16 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 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: 4 Thermidor an 216 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.2 (gnu/linux) Cancel-Lock: sha1:RRh6eCbZYA1BQdig3JAPy9qBlK4= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6686 Archived-At: Hi, "Julian Graham" writes: > guile> (keyword? 'foo:) > #t This is expected, per SRFI-88. > This is particularly bad because it breaks a lot of code that calls > `use-modules' with the :prefix or :rename syntax -- from looking at some > of the core libraries, it seems like it's pretty common to use > rename-prefixes that end in a colon. So, for example, the ice-9 debugger > modules don't work after loading `(srfi srfi-88)'. Good point. Alas, that's hardly avoidable, given that the above behavior is defined by SRFI-88. One way to avoid it would be to not have a mutable global reader. This can be achieved using the `current-reader' fluid and something like Guile-Reader, which produces immutable `read' procedures: http://www.nongnu.org/guile-reader/doc/guile-reader.html#Quick-Start Thanks, Ludovic.