Subject: Re: Manipulating macro parameters
From: (Rob Warnock)
Date: Tue, 23 May 2006 04:37:25 -0500
Newsgroups: comp.lang.lisp
Message-ID: <>
CE <> wrote:
| Barry Margolin wrote:
| > (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,

    (intern (concatenate 'string (symbol-name x) (symbol-name :bar)))


p.s. Or for a very slight performance gain:

    (intern (concatenate 'string (symbol-name x)
				 (load-time-value (symbol-name :bar))))

Rob Warnock			<>
627 26th Avenue			<URL:>
San Mateo, CA 94403		(650)572-2607