Newsgroups: comp.lang.lisp
From: Matus Kmit <simply.nit...@gmail.com>
Date: Thu, 12 Jan 2012 00:19:21 -0800 (PST)
Local: Thurs, Jan 12 2012 3:19 am
Subject: Re: Odd length keyword list
On 11 Jan., 18:59, kenny <kentil...@gmail.com> wrote:
> On Jan 11, 10:45 am, Matus Kmit <simply.nit...@gmail.com> wrote:
Thanks all for your help. I got it.
> > Hi
> > I have this macro:
> > (defmacro format-time (one &optional two &key format-fn)
> > If I try to macroexpand it with (macroexpand '(format-time (normalize-
> > Odd length keyword list: (FORMAT)
> > What is wrong?
> Answered elsewhere, I presume. Meanwhile, you are pretty much doomed
> (defmacro format-time ((one &optional two) &key (format-fn 'format))
> I threw in the default value for format-fn, which you really should
> Supermeanwhile: why is this a macro?
> -hk
aroung with lisp trying to understand macros, eval, parameter types, etc... On the other hand I was looking for a way how to splice parameters
(apply #'format t (cons "~a:~a" (normalize-consed-time '(1 . 2))))
greetings,
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||