From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gregory Marton Newsgroups: gmane.lisp.guile.bugs Subject: Re: procedure-source inconsistencies Date: Fri, 8 Aug 2008 17:36:12 -0400 (EDT) Message-ID: References: <49dd78620808081425n5617579eg8d87be4e68faaacd@mail.gmail.com> Reply-To: Gregory Marton NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: ger.gmane.org 1218231394 1628 80.91.229.12 (8 Aug 2008 21:36:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2008 21:36:34 +0000 (UTC) Cc: bug-guile@gnu.org, Linda Brown Westrick To: Neil Jerram Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Aug 08 23:37:24 2008 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KRZe8-0004CG-Kk for guile-bugs@m.gmane.org; Fri, 08 Aug 2008 23:37:16 +0200 Original-Received: from localhost ([127.0.0.1]:38834 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRZdC-0007iI-P1 for guile-bugs@m.gmane.org; Fri, 08 Aug 2008 17:36:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRZd9-0007hJ-HA for bug-guile@gnu.org; Fri, 08 Aug 2008 17:36:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRZd8-0007fu-3d for bug-guile@gnu.org; Fri, 08 Aug 2008 17:36:15 -0400 Original-Received: from [199.232.76.173] (port=44956 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRZd7-0007fX-RE for bug-guile@gnu.org; Fri, 08 Aug 2008 17:36:13 -0400 Original-Received: from outgoing.csail.mit.edu ([128.30.2.149]:36339) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KRZd7-0007le-IV for bug-guile@gnu.org; Fri, 08 Aug 2008 17:36:13 -0400 Original-Received: from ashmore.csail.mit.edu ([128.30.44.32]) by outgoing.csail.mit.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KRZd6-0000G5-QZ; Fri, 08 Aug 2008 17:36:12 -0400 Original-Received: from gremio (helo=localhost) by ashmore.csail.mit.edu with local-esmtp (Exim 4.63) (envelope-from ) id 1KRZd6-0001Oa-JG; Fri, 08 Aug 2008 17:36:12 -0400 In-Reply-To: <49dd78620808081425n5617579eg8d87be4e68faaacd@mail.gmail.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3958 Archived-At: 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~~~~^^^^~~~~~--~~~~~~~~~~~~~~~++~~~~~~~