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#11198: problems reading data with a "read-hash-extend" registered reader Date: Wed, 11 Apr 2012 15:33:32 -0400 Message-ID: <87d37e83n7.fsf@netris.org> References: <87zkaka9xl.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 1334173034 14817 80.91.229.3 (11 Apr 2012 19:37:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2012 19:37:14 +0000 (UTC) Cc: 11198@debbugs.gnu.org, Klaus Stehle To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Apr 11 21:37:11 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 1SI3Lh-0000KT-2C for guile-bugs@m.gmane.org; Wed, 11 Apr 2012 21:37:01 +0200 Original-Received: from localhost ([::1]:53422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI3Lg-0005QK-AK for guile-bugs@m.gmane.org; Wed, 11 Apr 2012 15:37:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI3Ld-0005Pi-44 for bug-guile@gnu.org; Wed, 11 Apr 2012 15:36:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SI3La-0002BW-GE for bug-guile@gnu.org; Wed, 11 Apr 2012 15:36:56 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI3La-0002BN-Cd for bug-guile@gnu.org; Wed, 11 Apr 2012 15:36:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SI3Mg-0007Pc-8X for bug-guile@gnu.org; Wed, 11 Apr 2012 15:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 11 Apr 2012 19:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11198 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 11198-submit@debbugs.gnu.org id=B11198.133417307328477 (code B ref 11198); Wed, 11 Apr 2012 19:38:02 +0000 Original-Received: (at 11198) by debbugs.gnu.org; 11 Apr 2012 19:37:53 +0000 Original-Received: from localhost ([127.0.0.1]:52651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SI3MX-0007PG-4X for submit@debbugs.gnu.org; Wed, 11 Apr 2012 15:37:53 -0400 Original-Received: from world.peace.net ([96.39.62.75]:38514) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SI3MV-0007P8-70 for 11198@debbugs.gnu.org; Wed, 11 Apr 2012 15:37:51 -0400 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.72) (envelope-from ) id 1SI3LH-0002Qu-Ji; Wed, 11 Apr 2012 15:36:36 -0400 In-Reply-To: <87zkaka9xl.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 09 Apr 2012 23:10:14 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) 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:6297 Archived-At: ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Klaus Stehle skribis: > >> (read-hash-extend #\R read-R) > > Unlike previous versions, Guile 2.0 has distinct compilation and > run-time phases. Here you probably want the reader extension to become > effective at compile-time (when compiling), and at evaluation-time (when > interpreting the code): > > (eval-when (compile eval) > (read-hash-extend #\R read-R)) I don't think this will be sufficient by itself, because 'read-R' will not yet be bound at compile time. You also need to define 'read-R' within the 'eval-when', and everything else that's needed to run 'read-R'. Alternatively, you could refrain from using the #\R syntax within the same file where it is defined. Mark