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 22:37:19 +0100 Message-ID: <49dd78620807311437g7ab367bdxed293a3b8dbd5753@mail.gmail.com> References: <87r69ccaus.fsf@unknownlamer.org> <489074A9.1080508@wilsonjc.us> <49dd78620807310020i8b55067gd22f6ce361a04d7d@mail.gmail.com> 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 1217540255 22875 80.91.229.12 (31 Jul 2008 21:37:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2008 21:37:35 +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 23:38:25 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 1KOfqq-0007lo-JW for guile-user@m.gmane.org; Thu, 31 Jul 2008 23:38:24 +0200 Original-Received: from localhost ([127.0.0.1]:51161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOfpw-0007lq-5P for guile-user@m.gmane.org; Thu, 31 Jul 2008 17:37:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOfpr-0007jO-UQ for guile-user@gnu.org; Thu, 31 Jul 2008 17:37:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOfpp-0007eD-PC for guile-user@gnu.org; Thu, 31 Jul 2008 17:37:23 -0400 Original-Received: from [199.232.76.173] (port=39702 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOfpp-0007dw-Kv for guile-user@gnu.org; Thu, 31 Jul 2008 17:37:21 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.244]:19221) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KOfpp-0001BK-JA for guile-user@gnu.org; Thu, 31 Jul 2008 17:37:21 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so771195rvb.6 for ; Thu, 31 Jul 2008 14:37:20 -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=YMy4q04PFLRCD07VieUzC5rL/TpQKwjeTeRzt5+H5LQ=; b=w1CzBPjdeZkEiwWF/aPWjSFrF9qYOytOLflPcUDsyhnh0TiQJPJm61hqCGmpRcAQcM IOHMUVD4g9SUBl3CTFs0vaSDI/LlIMmg/3pbLbJFemCR0/J4wNA40kV3jQ2JwmC4k3Ro Wb3heuTmnxFulE0xonCTs7IibysfwCTZbBOEc= 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=gSuupS1iMmlyhO0SfwSflMbxtgxBAekLmeCFIe5x5j4xCotjkJ33e+d2uLZH6IVHdf quKl8y5t/s/Cxv4mbG7ao/ZTOkgbjo2AdS67MS8WReZ7jsNuDJWT5ntwko+xBQqf4Cck Yi+b1AmXvtOsX7Otwyn3QfJ69IPsnWlYiazbA= Original-Received: by 10.114.25.3 with SMTP id 3mr10798636way.22.1217540240085; Thu, 31 Jul 2008 14:37:20 -0700 (PDT) Original-Received: by 10.114.197.8 with HTTP; Thu, 31 Jul 2008 14:37:19 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:6711 Archived-At: 2008/7/31 Maciek Godek : > Here comes another one: > Suppose I want to define a variable, but I don't know its name > -- it is contained in another variable. For example: > (define a 'b) > I want to assign a value to the symbol "contained" in a. > (that would be b in this example). The problem is that "define" > quotes its first argument. How to achieve it? I'm not so sure about this one, but I think that (eval `(define ,(car a) 1)) should work. Now, stepping back a bit - and purely out of interest - did you mention before why you are doing these strange things? Is it your way of exploring and learning, or is there (also) a specific requirement? Neil