From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Kjetil S. Matheussen" Newsgroups: gmane.lisp.guile.user Subject: Re: Closure? Date: Fri, 11 Jul 2008 19:47:24 +0200 (CEST) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: ger.gmane.org 1215798477 19539 80.91.229.12 (11 Jul 2008 17:47:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jul 2008 17:47:57 +0000 (UTC) Cc: guile-user@gnu.org To: "Kjetil S. Matheussen" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jul 11 19:48:44 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 1KHMjN-0007t2-U8 for guile-user@m.gmane.org; Fri, 11 Jul 2008 19:48:30 +0200 Original-Received: from localhost ([127.0.0.1]:43671 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHMiW-0002Sn-9X for guile-user@m.gmane.org; Fri, 11 Jul 2008 13:47:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KHMiS-0002Rs-J4 for guile-user@gnu.org; Fri, 11 Jul 2008 13:47:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KHMiR-0002Qr-84 for guile-user@gnu.org; Fri, 11 Jul 2008 13:47:32 -0400 Original-Received: from [199.232.76.173] (port=38258 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHMiR-0002Qh-0s for guile-user@gnu.org; Fri, 11 Jul 2008 13:47:31 -0400 Original-Received: from mail-out1.uio.no ([129.240.10.57]:55405) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KHMiR-0006Ha-4T for guile-user@gnu.org; Fri, 11 Jul 2008 13:47:31 -0400 Original-Received: from mail-mx4.uio.no ([129.240.10.45]) by mail-out1.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1KHMiL-00024b-Ny for guile-user@gnu.org; Fri, 11 Jul 2008 19:47:25 +0200 Original-Received: from notam02.uio.no ([129.240.197.34]) by mail-mx4.uio.no with esmtp (Exim 4.67) (envelope-from ) id 1KHMiL-0006g3-Iy; Fri, 11 Jul 2008 19:47:25 +0200 Original-Received: from kjetism (helo=localhost) by notam02.uio.no with local-esmtp (Exim 4.44) id 1KHMiL-0007b9-C1; Fri, 11 Jul 2008 19:47:25 +0200 X-X-Sender: kjetism@notam02.uio.no In-Reply-To: X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0, autolearn=disabled, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO) X-UiO-Scanned: DDDC2AF93D6F28E4F60E8D2FEC9245271B8C5C69 X-UiO-SPAM-Test: remote_host: 129.240.197.34 spam_score: -49 maxlevel 200 minaction 1 bait 0 mail/h: 1 total 9501 max/h 25 blacklist 0 greylist 0 ratelimit 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:6643 Archived-At: On Fri, 11 Jul 2008, Kjetil S. Matheussen wrote: > > > Ludovic Court?s: > > "Maciek Godek" writes: > > > >> I've been wondering if there's any way to recall > >> (or get inside) an environment of a closure (= to > >> directly access variables bound to a closure) > > > > Yes, with `the-environment': > > > > guile> ((lambda (a b) (the-environment)) 2 3) > > (((a b) 2 3) #) > > > > But don't do that, since the representation of environments could > > eventually change. > > > > Please don't change it. :-) > It's one of those things which makes Guile special. Sorry, I misunderstood. What I ment is that (the-environment) etc. is what makes Guile special. I hope there is no plans to remove all that.