bug-guile
[Top][All Lists]
Advanced

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

Re: procedure-source inconsistencies


From: Gregory Marton
Subject: Re: procedure-source inconsistencies
Date: Fri, 8 Aug 2008 17:36:12 -0400 (EDT)

Thank you, Neil!

Do you have to use the procedure source as your assoc key?  Why not
use the procedure itself?

We have to serialize the procedure-qua-association-key to a file between when we set the value and when we'll need it next time.


I can imagine one solution to be remembering the actual source somewhere
instead of regenerating it in procedure-source.  That would be great.

I believe the 'copy read-option does that.  i.e. if you do

(read-enable 'copy)

Guile will store a copy of the original source, and return that as the
result of a (procedure-source ...) call.

I hadn't even dared hope it would be that easy.  Thank you.

Grem

--
------ __@   Gregory A. Marton                http://csail.mit.edu/~gremio/
--- _`\<,_                                                                .
-- (*)/ (*)            #The grappling hooks on to the enemy ship.
~~~~~~~~~~~~~~~~-~~~~~~~~_~~~_~~~~~v~~~~^^^^~~~~~--~~~~~~~~~~~~~~~++~~~~~~~





reply via email to

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