[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: |
Mark H Weaver |
Subject: |
bug#11198: problems reading data with a "read-hash-extend" registered reader |
Date: |
Wed, 11 Apr 2012 15:33:32 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
> 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))
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
- bug#11198: problems reading data with a "read-hash-extend" registered reader, Klaus Stehle, 2012/04/08
- bug#11198: problems reading data with a "read-hash-extend" registered reader, Ludovic Courtès, 2012/04/09
- bug#11198: problems reading data with a "read-hash-extend" registered reader, Klaus Stehle, 2012/04/11
- bug#11198: problems reading data with a "read-hash-extend" registered reader,
Mark H Weaver <=
- bug#11198: problems reading data with a "read-hash-extend" registered reader, Klaus Stehle, 2012/04/11
- bug#11198: problems reading data with a "read-hash-extend" registered reader, Mark H Weaver, 2012/04/22
- bug#11198: problems reading data with a "read-hash-extend" registered reader, Ludovic Courtès, 2012/04/22
- bug#11198: problems reading data with a "read-hash-extend" registered reader, Andy Wingo, 2012/04/24
- bug#11198: problems reading data with a "read-hash-extend" registered reader, Noah Lavine, 2012/04/24
- bug#11198: problems reading data with a "read-hash-extend" registered reader, Noah Lavine, 2012/04/24
- bug#11198: problems reading data with a "read-hash-extend" registered reader, Ludovic Courtès, 2012/04/24