![](https://secure.gravatar.com/avatar/475d746a8cc0a2c1d6329a90e9ff0831.jpg?s=120&d=mm&r=g)
5 Jun
2008
5 Jun
'08
11:25 a.m.
On Thu, Jun 05, 2008 at 12:55:30PM +0300, Nikodemus Siivola wrote:
On Thu, Jun 5, 2008 at 12:29 PM, Attila Lendvai <attila.lendvai@gmail.com> wrote:
FWIW, I think FORMAT-SYMBOL is almost always preferable, but I admit
(symbolicate '#:foo- name '#:-bar)
which looks like this using format-symbol:
(format-symbol t "~A-~A-~A" '#:foo name '#:bar)
...I did say "almost' :)
But what's wrong with
(format-symbol t "FOO-~A-BAR" name)
that it does the wrong thing on "modern" lisps, in that (format-symbol t "FOO-~A-BAR" 'baz) yields something that prints |FOO-baz-BAR| , while (symbolicate '#:foo 'baz '#:bar) works fine -- Stelian Ionescu a.k.a. fe[nl]ix Quidquid latine dictum sit, altum videtur.