* (read-enable 'copy)
@ 2005-10-18 9:03 Ludovic Courtès
2005-10-19 22:34 ` Neil Jerram
0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2005-10-18 9:03 UTC (permalink / raw)
Hello,
What is the `copy' reader option about? Looking at the code, it seems
that this has to do with source properties but I fail to understand the
point of this option.
Thanks,
Ludovic.
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: (read-enable 'copy)
2005-10-18 9:03 (read-enable 'copy) Ludovic Courtès
@ 2005-10-19 22:34 ` Neil Jerram
0 siblings, 0 replies; 2+ messages in thread
From: Neil Jerram @ 2005-10-19 22:34 UTC (permalink / raw)
ludovic.courtes@laas.fr (Ludovic Courtès) writes:
> Hello,
>
> What is the `copy' reader option about? Looking at the code, it seems
> that this has to do with source properties but I fail to understand the
> point of this option.
It tells Guile to take a copy of the source expression as originally
read, before it might be transformed by the syntax transformer, macro
expansion or memoization. Then the backtrace can show the actual
original expression.
Whereas, without the copy option, the backtrace shows a guess
(admittedly, usually correct) at the original expression which is
obtained by unmemoizing the evaluator's internal representation.
Neil
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-19 22:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-18 9:03 (read-enable 'copy) Ludovic Courtès
2005-10-19 22:34 ` Neil Jerram
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).