From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Neil Jerram" Newsgroups: gmane.lisp.guile.user Subject: Re: Me no understand scoping Date: Thu, 31 Jul 2008 08:20:06 +0100 Message-ID: <49dd78620807310020i8b55067gd22f6ce361a04d7d@mail.gmail.com> References: <87r69ccaus.fsf@unknownlamer.org> <489074A9.1080508@wilsonjc.us> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1217488825 8220 80.91.229.12 (31 Jul 2008 07:20:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2008 07:20:25 +0000 (UTC) Cc: guile-user@gnu.org To: "Maciek Godek" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Jul 31 09:21:15 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 1KOSTK-0000sy-CQ for guile-user@m.gmane.org; Thu, 31 Jul 2008 09:21:14 +0200 Original-Received: from localhost ([127.0.0.1]:41986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOSSP-0006qb-Pa for guile-user@m.gmane.org; Thu, 31 Jul 2008 03:20:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOSSL-0006qU-BJ for guile-user@gnu.org; Thu, 31 Jul 2008 03:20:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOSSI-0006qH-K3 for guile-user@gnu.org; Thu, 31 Jul 2008 03:20:11 -0400 Original-Received: from [199.232.76.173] (port=54438 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOSSI-0006qE-GV for guile-user@gnu.org; Thu, 31 Jul 2008 03:20:10 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:17540) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KOSSI-0004hu-6z for guile-user@gnu.org; Thu, 31 Jul 2008 03:20:10 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.240]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KOSSG-0008QK-Ga for guile-user@gnu.org; Thu, 31 Jul 2008 03:20:08 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so437778rvb.6 for ; Thu, 31 Jul 2008 00:20:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=SIEzOSg2jZL2TppTRFFxfaToKOptfCMg8GJs8lmrgKg=; b=liKeiaeJtQr3aJhhyAIR4+yevdJEZu7W9IG2mLjucN2ygWRjM43hosvCzBpx/q4YLY mzQfgE8jKmfbk8rapy9LOkuf/IwGjwzIMW2LHQQi367WMiSYBqR42xgDg1QpmPNLczCK 6tkD+U4npYEZNRSSlEDbG8l7B3aPeiMpGIatA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=rxs51ECy0HKMU6/U3wdOCnM7D5y+zxHvB6Z2L0jOhoU2lDGT++Wp3PI3dhHVyJsEwd BvXdoZB7POzSTyTQbVvl9GfsMYaBwWZzOiFRtKQUjedeGiQl6Ap7YMSuWcZr2rRjyJbD WB4rQOy6aIg/ictpKH5TWem0G8Ko2NWiCtYi8= Original-Received: by 10.114.26.18 with SMTP id 18mr9715864waz.130.1217488806668; Thu, 31 Jul 2008 00:20:06 -0700 (PDT) Original-Received: by 10.114.197.8 with HTTP; Thu, 31 Jul 2008 00:20:06 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:6709 Archived-At: 2008/7/30 Maciek Godek : > > By the way I have a question (regarding not using eval). > I want to pass the contents of a list to a function that accepts the > so-called "rest" args. > (let ((l '(1 2 3 4 5))) > (let ((operation (append '(+) l))) > (primitive-eval operation) > ) > ) > > How to achieve this effect without using eval? > (I've tried (+ . l) but it didn't work out) (apply + l) >> The view of the scheme community as a whole is that first class lexical >> environments are irreconcilable with the need to compile (optimize) code. > > Certainly there's a faction that thinks differently :] If and when we have an optimized compiler, I imagine there would be some way of allowing the environment to be optimized away when not explicitly wanted, but kept available when it is wanted. > Yeah, I always write additional layers so the code corresponds to the > way I think. (Everybody does, don't they?) Yes! Regards, Neil