Volkan YAZICI <·············@gmail.com> writes:
> In below macro
> (defmacro define-formatter-generics-and-accessors (&body formatter-
> [...]
> P.S. Pretty printed version of the code is located at
> http://paste.lisp.org/display/66339
Along with a solution...
--
__Pascal Bourguignon__
On Sep 5, 5:38 pm, ····@informatimago.com (Pascal J. Bourguignon)
wrote:
> Along with a solution...
I'd be happy to hear the backquote solution along with a keyword hack.
Regards.
VY> ,@',(reduce
here, replace ,@', with ,@,
and it produces:
(PROGN
(PROGN
(DEFGENERIC %FORMAT-SCHEMA-IDENTIFIER (RDBMS &KEY SCHEMA))
(DEFMACRO FORMAT-SCHEMA-IDENTIFIER (&KEY SCHEMA)
`(%FORMAT-SCHEMA-IDENTIFIER *RDBMS* ,@(:SCHEMA SCHEMA)))))
i guess that's what you want?
...
in more general way, you should have moved quote from ,@', to your
(list (intern symbol-name :keyword) key) expression, sort of
`(',(intern symbol-name :keyword) ,key)
but it's not needed here because (quote :kerword) is same as :kerword
but i agree with Pascal -- second backquote here just mades code more
cryptic..