From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: Closure? Date: Tue, 15 Jul 2008 11:11:09 +0200 Message-ID: References: <49dd78620807121543l3de15e61lc5777c6bd2b628f1@mail.gmail.com> <87bq0z37ef.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1216222150 8213 80.91.229.12 (16 Jul 2008 15:29:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jul 2008 15:29:10 +0000 (UTC) Cc: guile-user@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jul 16 17:29:57 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KJ8wY-0008O7-GS for guile-user@m.gmane.org; Wed, 16 Jul 2008 17:29:26 +0200 Original-Received: from localhost ([127.0.0.1]:57188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJ8vg-0001jP-1R for guile-user@m.gmane.org; Wed, 16 Jul 2008 11:28:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJ8u7-0000Iq-Ox for guile-user@gnu.org; Wed, 16 Jul 2008 11:26:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJ8u6-0000Hl-3F for guile-user@gnu.org; Wed, 16 Jul 2008 11:26:55 -0400 Original-Received: from [199.232.76.173] (port=58319 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJ8u5-0000Hd-Rz for guile-user@gnu.org; Wed, 16 Jul 2008 11:26:53 -0400 Original-Received: from a-sasl-quonix.sasl.smtp.pobox.com ([208.72.237.25]:60034 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJ8u0-0001zp-TQ; Wed, 16 Jul 2008 11:26:49 -0400 Original-Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id 29FC62E7F5; Wed, 16 Jul 2008 11:26:31 -0400 (EDT) Original-Received: from unquote (ATuileries-152-1-49-25.w82-123.abo.wanadoo.fr [82.123.189.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTPSA id E69992E7F4; Wed, 16 Jul 2008 11:26:28 -0400 (EDT) In-Reply-To: <87bq0z37ef.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Tue, 15 Jul 2008 09:59:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Pobox-Relay-ID: 91045BB4-534B-11DD-B5C6-3113EBD4C077-02397024!a-sasl-quonix.pobox.com X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6666 Archived-At: On Tue 15 Jul 2008 09:59, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > "Neil Jerram" writes: > >> I agree. I can't see a reason why we might want to remove >> `the-environment' and `local-eval', even if Guile's internal >> representation of environments changes, because the ideas that there >> _is_ a lexical environment inside a lambda (or a let ...), and that >> one can evaluate with respect to these environments, are absolutely >> fundamental in Scheme. > > Agreed. I just said the *representation* of closures could change. You can determine exactly what should be in the lexical environments at compile-time; thus you can allocate a fixed structure of variables to hold the lexicals. I suppose that in theory, you might be able to implement an augmentable `the-environment' in guile-vm, but I do not plan on doing so myself. Or maybe so, I do have some old code I want to get back to at some point... http://ambient.2y.net/soundscrape/docs/tutorial/a-few-notes-on-mus= ic/a-new-vocabulary/ Andy --=20 http://wingolog.org/