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: A variable that holds a string which may be the name of a variable. Date: Thu, 03 Dec 2009 18:52:44 +0000 Message-ID: <87pr6vq48z.fsf@ossau.uklinux.net> References: <1259856685.3060.36.camel@debianrts.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259866388 31712 80.91.229.12 (3 Dec 2009 18:53:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2009 18:53:08 +0000 (UTC) Cc: guile-user@gnu.org To: richard.shann@virgin.net Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Dec 03 19:53:01 2009 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 1NGGnV-0005CE-Bl for guile-user@m.gmane.org; Thu, 03 Dec 2009 19:53:01 +0100 Original-Received: from localhost ([127.0.0.1]:58868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGGnV-0000vx-18 for guile-user@m.gmane.org; Thu, 03 Dec 2009 13:53:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGGnR-0000tT-7n for guile-user@gnu.org; Thu, 03 Dec 2009 13:52:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGGnM-0000me-O4 for guile-user@gnu.org; Thu, 03 Dec 2009 13:52:56 -0500 Original-Received: from [199.232.76.173] (port=43151 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGGnM-0000mT-8v for guile-user@gnu.org; Thu, 03 Dec 2009 13:52:52 -0500 Original-Received: from mail3.uklinux.net ([80.84.72.33]:49594) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NGGnL-00072P-W8 for guile-user@gnu.org; Thu, 03 Dec 2009 13:52:52 -0500 Original-Received: from arudy (host86-145-153-90.range86-145.btcentralplus.com [86.145.153.90]) by mail3.uklinux.net (Postfix) with ESMTP id E10D61F679D; Thu, 3 Dec 2009 18:52:48 +0000 (GMT) Original-Received: from arudy (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id 38F3938024; Thu, 3 Dec 2009 18:52:45 +0000 (GMT) In-Reply-To: <1259856685.3060.36.camel@debianrts.home> (Richard Shann's message of "Thu, 03 Dec 2009 16:11:25 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:7517 Archived-At: Richard Shann writes: > Thanks to all guileans who have responded. I seem to have a workable > solution based on Neil's code. The thing I hadn't grokked was the > existence of the with-input-from-string procedure. I had been messing > with defined? and symbol? but got nowhere. I would say the magic is more in `read' than in `with-input-from-string'. `read' is responsible for the conversion from something-that-looks-like-code to actual code - which in your case is a single symbol. `with-input-from-string' just tells `read' that the something-that-looks-like-code is a string. Regards, Neil