[comp.emacs] strings and symbols Re: GNU Emacs string-to-symbol function ?

merlyn@intelob.intel.com (Randal L. Schwartz @ Stonehenge) (05/04/89)

In article <8905022233.AA02036@dsys.icst.nbs.gov>, rbj@dsys (Root Boy Jim) writes:
| ? From: brunix!doorknob!kgk@uunet.uu.net
| ? What is the distinction between a string and a symbol-name?  
| None.

But, don't try something like I just did after reading your message, namely

	(setq RLS-foo 3)
	(aset (symbol-name 'RLS-foo) 2 ?s)

It gets the hashing all messed up.  I thought symbol-name would return
a copy of the string, but apparently it returns the real string.
Eeek.  I ended up with a RLs-foo that was boundp, but had a value of
void(!).  Don't try this at home!

I think there's a fine distinction between a symbol-name and a string,
but I'm hard pressed to say what it is.
-- 
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095===\
{ on contract to BiiN, Hillsboro, Oregon, USA, until 30 May 1989     }
{ <merlyn@intelob.intel.com> ...!uunet!tektronix!biin!merlyn         }
{ or try <merlyn@agora.hf.intel.com> after 30 May 1989               }
\=Cute quote: "Welcome to Oregon... home of the California Raisins!"=/