bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11198: problems reading data with a "read-hash-extend" registered re


From: Ludovic Courtès
Subject: bug#11198: problems reading data with a "read-hash-extend" registered reader
Date: Mon, 09 Apr 2012 23:10:14 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.93 (gnu/linux)

Hi Klaus,

Klaus Stehle <address@hidden> 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))

There’s an example of this in the manual, in the context of
‘current-reader’ (info "(guile) Loading").

Does it work for you?

Thanks,
Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]