From: Frederick C. Gibson, Architect
Subject: String to Symbol
Date: 
Message-ID: <74skbj$clg@sjx-ixn8.ix.netcom.com>
Is there a command to convert a string to a symbol in CL?

Thanks!

Fred Gibson, Architect

·········@gibson-design.com     Architecture designed Objectively
==================================-----------||||||||||||||||||||||
(c)1998 http://www.gibson-design.com

From: Marc Mertens
Subject: Re: String to Symbol
Date: 
Message-ID: <3672395C.9DFE41D7@akam.be>
IkZyZWRlcmljayBDLiBHaWJzb24sIEFyY2hpdGVjdCIgd3JvdGU6DQoNCj4gSXMgdGhlcmUg
YSBjb21tYW5kIHRvIGNvbnZlcnQgYSBzdHJpbmcgdG8gYSBzeW1ib2wgaW4gQ0w/DQo+DQo+
IFRoYW5rcyENCj4NCj4gRnJlZCBHaWJzb24sIEFyY2hpdGVjdA0KPg0KPiBGcmVkZXJpY2tA
Z2lic29uLWRlc2lnbi5jb20gICAgIEFyY2hpdGVjdHVyZSBkZXNpZ25lZCBPYmplY3RpdmVs
eQ0KPiA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09LS0tLS0tLS0tLS18fHx8
fHx8fHx8fHx8fHx8fHx8fHx8DQo+IChjKTE5OTggaHR0cDovL3d3dy5naWJzb24tZGVzaWdu
LmNvbQ0KDQpUcnkgJ3JlYWQtZnJvbS1zdHJpbmcnLg0KDQpNYXJjIE1lcnRlbnMNCm1tZXJ0
ZW5zQGFrYW0uYmUNCg0K
From: Paul Dietz
Subject: Re: String to Symbol
Date: 
Message-ID: <3672A8AA.92EF223E@interaccess.com>
Marc Mertens wrote:
> 
> "Frederick C. Gibson, Architect" wrote:
> 
> > Is there a command to convert a string to a symbol in CL

> Try 'read-from-string'.


An inferior solution, since it doesn't work on general
strings, and is very slow.

	Paul
From: Matthias Buelow
Subject: Re: String to Symbol
Date: 
Message-ID: <87r9u43mn9.fsf@altair.mayn.de>
Marc Mertens <········@akam.be> writes:

> UGF1bCBEaWV0eiB3cm90ZToNCg0KPiBNYXJjIE1lcnRlbnMgd3JvdGU6DQo+ID4NCj4gPiAi
> RnJlZGVyaWNrIEMuIEdpYnNvbiwgQXJjaGl0ZWN0IiB3cm90ZToNCj4gPg0KPiA+ID4gSXMg

As a sidenote, why do you encode your postings in base64?

-- 
  ``Round about the terminal go; / In the poisoned upgrade throw.
  Code, which by a student done / In minutes numbering sixty-one.
  Run-time error, protection fault / Crash ye first, crash ye shalt.''
	(The Oracle, MacBeth95)
From: David B. Lamkins
Subject: Re: String to Symbol
Date: 
Message-ID: <%Ikc2.1402$9n4.790501@news.teleport.com>
In article <··········@sjx-ixn8.ix.netcom.com> , "Frederick C. Gibson,
Architect" <·········@gibson-design.com> wrote:

>Is there a command to convert a string to a symbol in CL?

INTERN if you want an interned symbol, otherwise MAKE-SYMBOL.  See chapters
10 and 11 of the CLHS at <http://www.harlequin.com/books/HyperSpec/>.

--
David B. Lamkins <http://www.teleport.com/~dlamkins/>

Recently undead Isabelle to the archangel Gabriel in "The Prophecy II": 
"So, you're keeping me alive because you don't know DOS?"
From: Kent M Pitman
Subject: Re: String to Symbol
Date: 
Message-ID: <sfwaf0t90jw.fsf@world.std.com>
"David B. Lamkins" <········@teleport.com> writes:

> In article <··········@sjx-ixn8.ix.netcom.com> , "Frederick C. Gibson,
> Architect" <·········@gibson-design.com> wrote:
> 
> >Is there a command to convert a string to a symbol in CL?
> 
> INTERN if you want an interned symbol, otherwise MAKE-SYMBOL.  See chapters
> 10 and 11 of the CLHS at <http://www.harlequin.com/books/HyperSpec/>.

Right, although I have to say I'm a little uncomfortable philosophically
with the verb "convert" in this context.  It's a little like saying, 
"how do i convert a ten-dollar bill into a pizza?"  In some sense, one
can do that, but the two are not equivalent items, and the process is not
mere translation in the same sense as turning a simple list into a
simple vector might be (analogy: turning two fives into a ten, or turning
a buffalo nickel into a jefferson nickel, where you have mere alternate
representations that you're shifting between with no essential loss of
information or lack of invertibility).

INTERN computes a functional relationship between a key and a
constructed value; that's not the same as transforming the object's
representation directly.  Even MAKE-SYMBOL is more akin to cons than
to COERCE in that it creates an object with new slots like property
list, function cell, etc.

It's a small point, I guess.  But somehow it seemed worth saying
anyway...