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