[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Computed values in a macro
Is it possible to insert computed values into a macro?
For example, say I want to turn
(sexp this that)
into
(xexpr "this" "that")
The only way I can see to do this is to go
(sexp this that)
=>
`(xexpr ,(symbol->string this) ,(symbol->string
that))
and then
(eval `(xexpr ...))
This is a pain as I have to manually include
(un)quotes into my macros. Is there a more elegant
way?
TIA
Noel
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com