Olivier Galibert <galibert(a)pobox.com> writes:
With the indexed lrecord implementation, it is quite easy to do. But
I'm not convinced this is what you really want to have:
(setq bar 10)
10
(setq nbar (symbol-name 'bar))
"bar"
(aset nbar 0 ?x)
?x
nbar
"xar"
bar
--> Symbol's value as variable is void: bar
What is your point? I still believe that symbol name should never be
modified, and that `aset' should have signaled an error.
How am I supposed to work on the string which happens to be
initially a symbol name ?
Lisp programs should almost never modify random strings. If the
string happened to come initially from a symbol name, then it is
definitely a bad idea to modify it. Your code should modify only
those strings that it created.
I see no "copy-string" or equivalent function.
`copy-sequence'
--
Hrvoje Niksic <hniksic(a)srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Which is worse: ignorance or apathy? Who knows? Who cares?