From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: Anything better for delayed lexical evaluation than (lambda () ...)? Date: Tue, 13 Dec 2011 16:48:49 +0100 Message-ID: <87zkewa2vy.fsf@pobox.com> References: <87liqtpsl9.fsf@fencepost.gnu.org> <874nxdwkbi.fsf@rapitore.luna> <87d3bvfo5d.fsf@fencepost.gnu.org> <871usaicvi.fsf@netris.org> <87mxaycmlx.fsf@fencepost.gnu.org> <87wra1hcek.fsf@netris.org> <87mxaxihnw.fsf@pobox.com> <87obvclu92.fsf@fencepost.gnu.org> <87aa6wbp0w.fsf@pobox.com> <87fwgolgm5.fsf@fencepost.gnu.org> <8762hkbkwi.fsf@pobox.com> <87borclcem.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1323791363 11375 80.91.229.12 (13 Dec 2011 15:49:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2011 15:49:23 +0000 (UTC) Cc: guile-devel@gnu.org To: David Kastrup Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Dec 13 16:49:19 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RaUbV-0001LZ-BP for guile-devel@m.gmane.org; Tue, 13 Dec 2011 16:49:17 +0100 Original-Received: from localhost ([::1]:55285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaUbV-0006Md-0e for guile-devel@m.gmane.org; Tue, 13 Dec 2011 10:49:17 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:45300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaUbN-0006MX-Ix for guile-devel@gnu.org; Tue, 13 Dec 2011 10:49:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RaUbH-00032p-VV for guile-devel@gnu.org; Tue, 13 Dec 2011 10:49:09 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:34243 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaUb9-000320-KZ; Tue, 13 Dec 2011 10:48:55 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id AAC6A8D0F; Tue, 13 Dec 2011 10:48:54 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=lI9Rqu64d1WFbN4+CdphDN/Tz8w=; b=q/ybrQ IU0V7JKvhC+8NmP/PZwwhRpeY8WL9u6K0uH6NUXZzBq6gWDup+6T+NpH7CNB8BSQ TYwR6LRxSO5cy5Fbl9DdTWMqmepwwjjReVeDUJIZUxrT0OziuEdS6y9pfEIqfXrk UsTTlWbM1XnrgEkyoAwV+stLHkzlQIVG6uROc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=aKXHgbOsrbZFKz1RyREhx3c4+TkuPErm MHB335ABJDYtP0sZffDEVMlZkbFm0OCobEPj8ffkESb+THH0WGJ3UTuEaL/clgsG KHVguYa+KblsUhH30dp1qyo6y/NhGbyUD4OQpnCnbP3ZbRYl7u0Jwc0X4fjE/WIe AbgWNaS2qdw= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id A28A38D0E; Tue, 13 Dec 2011 10:48:54 -0500 (EST) Original-Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 13DAD8D0C; Tue, 13 Dec 2011 10:48:52 -0500 (EST) In-Reply-To: <87borclcem.fsf@fencepost.gnu.org> (David Kastrup's message of "Tue, 13 Dec 2011 16:27:45 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Pobox-Relay-ID: F53E11D4-25A1-11E1-99DF-65B1DE995924-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 74.115.168.62 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:13057 Archived-At: On Tue 13 Dec 2011 16:27, David Kastrup writes: >> It sounds like `current-bindings' is the thing you need. > > It will at least be a year before any solution that does not work with > Guile 1.8 will be accepted into Lilypond. It is possible to have similar interfaces with different implementations, using `cond-expand'. lily.scm does this in one case, implementing 2.0 interfaces on 1.8. I'll take a look at implementing something like this. To summarize your issue: you have code like: (lambda (a b c) #{ here I have custom code that references lexical variables; should it be able to set them too? }#) It would be relatively easy to pass in an alist of the lexicals, for reference purposes; but do you want to be able to set them too, from within that EDSL? Andy -- http://wingolog.org/