From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Shann 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 19:00:48 +0000 Message-ID: <1259866849.2947.10.camel@debianrts.home> References: <1259781727.3060.16.camel@debianrts.home> <87skbt81df.fsf@ossau.uklinux.net> <3ae3aa420912030923l146d7d07j9a838fc90fae491e@mail.gmail.com> <87ljhjq431.fsf@ossau.uklinux.net> Reply-To: richard.shann@virgin.net NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1259867281 2430 80.91.229.12 (3 Dec 2009 19:08:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2009 19:08:01 +0000 (UTC) Cc: guile-user@gnu.org To: Neil Jerram Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Dec 03 20:07:53 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 1NGH1t-00047z-1d for guile-user@m.gmane.org; Thu, 03 Dec 2009 20:07:53 +0100 Original-Received: from localhost ([127.0.0.1]:45425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGH1s-0005LR-PD for guile-user@m.gmane.org; Thu, 03 Dec 2009 14:07:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGH1b-0005L0-IR for guile-user@gnu.org; Thu, 03 Dec 2009 14:07:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGH1X-0005K6-Q4 for guile-user@gnu.org; Thu, 03 Dec 2009 14:07:35 -0500 Original-Received: from [199.232.76.173] (port=52721 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGH1X-0005Jz-KB for guile-user@gnu.org; Thu, 03 Dec 2009 14:07:31 -0500 Original-Received: from mtaout02-winn.ispmail.ntl.com ([81.103.221.48]:39817) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NGH1X-0008US-Aa for guile-user@gnu.org; Thu, 03 Dec 2009 14:07:31 -0500 Original-Received: from know-smtpout-2.server.virginmedia.net ([62.254.123.2]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20091203190730.TEQE27507.mtaout02-winn.ispmail.ntl.com@know-smtpout-2.server.virginmedia.net>; Thu, 3 Dec 2009 19:07:30 +0000 Original-Received: from [87.114.68.113] (helo=[192.168.2.3]) by know-smtpout-2.server.virginmedia.net with esmtpa (Exim 4.63) (envelope-from ) id 1NGH1V-0006TV-Qt; Thu, 03 Dec 2009 19:07:30 +0000 In-Reply-To: <87ljhjq431.fsf@ossau.uklinux.net> X-Mailer: Evolution 2.22.3.1 X-Cloudmark-Analysis: v=1.1 cv=ZtHxNT4mZm3rCuM0SmWmgWxeBwJsziC8EqOrwwVkrhA= c=1 sm=0 a=Np-yeqm373cA:10 a=tOnwS5-cS8YA:10 a=pGLkceISAAAA:8 a=tdKlQm_5AAAA:8 a=YVhJgPTqWnOa4CYiotwA:9 a=HqVzA-1VY52jAuK2La8KU4eLUygA:4 a=MSl-tDqOz04A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:7519 Archived-At: On Thu, 2009-12-03 at 18:56 +0000, Neil Jerram wrote: > Linas Vepstas writes: > > > 2009/12/2 Neil Jerram : > > Neil, > > > > For my own edification -- is tehre any difference between > > > >> (let ((sym (with-input-from-string mything read))) > > > > and > > > > (let ((sym (string->symbol mything))) > > In the case where mything is a string consisting of symbol syntax > characters, no. In fact, I was somewhat interested that it should be fairly bomb proof to the contents of mything. So I tried Neil's code on various dangerous looking things... I hadn't spotted string->symbol, else I might have got there unaided; I had a hazy idea that that was what I was trying to do. Gradually the mists are clearing - thank you. Richard