From: Steve Polyak
Subject: Making a symbol from a string?
Date: 
Message-ID: <01bb9db7$78981770$9444b7ce@spolyak>
Let's say you have the following:

(setf item-a '"test")

I want to make a new item from
item-a that would be the same 
as if I had said (setf item-b 'test).
How can I create item-b using
item-a?

ITEM-A is a SYMBOL:
Package:                      common-lisp-user
Accessibility:                :internal
Accessible In:                nil
Value:                        "test"
Special Variable ?:           NIL
Constant ?:                   NIL
Function:                     no global function definition
Macro ?:                      NIL
Special form ?:               NIL
Setf-able ?:                  NIL
Plist:                        NIL

ITEM-B is a SYMBOL:
Package:                      common-lisp-user
Accessibility:                :internal
Accessible In:                nil
Value:                        TEST
Special Variable ?:           NIL
Constant ?:                   NIL
Function:                     no global function definition
Macro ?:                      NIL
Special form ?:               NIL
Setf-able ?:                  NIL
Plist:                        NIL

From: Steve Polyak
Subject: Re: Making a symbol from a string?
Date: 
Message-ID: <01bb9dc5$6b0bbc70$d544b7ce@spolyak>
read-from-string seems to be the best solution for now.

Steve Polyak <·······@interaccess.com> wrote in article
<··························@spolyak>...
> Let's say you have the following:
> 
> (setf item-a '"test")
> 
> I want to make a new item from
> item-a that would be the same 
> as if I had said (setf item-b 'test).
> How can I create item-b using
> item-a?
> 
> ITEM-A is a SYMBOL:
> Package:                      common-lisp-user
> Accessibility:                :internal
> Accessible In:                nil
> Value:                        "test"
> Special Variable ?:           NIL
> Constant ?:                   NIL
> Function:                     no global function definition
> Macro ?:                      NIL
> Special form ?:               NIL
> Setf-able ?:                  NIL
> Plist:                        NIL
> 
> ITEM-B is a SYMBOL:
> Package:                      common-lisp-user
> Accessibility:                :internal
> Accessible In:                nil
> Value:                        TEST
> Special Variable ?:           NIL
> Constant ?:                   NIL
> Function:                     no global function definition
> Macro ?:                      NIL
> Special form ?:               NIL
> Setf-able ?:                  NIL
> Plist:                        NIL
> 
> 
From: Sunil Mishra
Subject: Re: Making a symbol from a string?
Date: 
Message-ID: <efysp8sad2h.fsf@cleon.cc.gatech.edu>
In article <··························@spolyak> "Steve Polyak" <·······@interaccess.com> writes:

\\ Let's say you have the following:
\\ 
\\ (setf item-a '"test")
\\ 
\\ I want to make a new item from
\\ item-a that would be the same 
\\ as if I had said (setf item-b 'test).
\\ How can I create item-b using
\\ item-a?

(intern (string-upcase "test") :common-lisp-user)

should do the trick.

Sunil