CE <hpalace@hpalace.com> wrote:
+---------------
| Barry Margolin wrote:
| >rpw3@rpw3.org (Rob Warnock) wrote:
| >> Why READ-FROM-STRING and not simply INTERN?
| >
| > Because if you use INTERN you need to do the right thing regarding
| > mapping case, whereas READ-FROM-STRING will handle it automatically.
|
| You can get both! Use format: (intern (format nil "~S-~S" :foo :bar))
+---------------
I suggested basically the same thing in another branch of the reply tree,
namely:
(intern (concatenate 'string (symbol-name x) (symbol-name :bar)))
-Rob
p.s. Or for a very slight performance gain:
(intern (concatenate 'string (symbol-name x)
(load-time-value (symbol-name :bar))))
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607