This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: KAWA: keyword and apply
On Thu, Jan 30, 2003 at 12:06:57PM -0800, you wrote:
>
> Works for me on a fairly recent CVS version. What version of kawa are
> you running?
>
> (define (proc #!key foo bar)
> (format #t "foo is ~A~%" foo)
> (format #t "bar is ~A~%" bar))
>
> #|kawa:192|# (apply proc '(foo: "foo-string" bar: 123))
> foo is foo-string
> bar is 123
>
>
> Regards,
> Chris Dean
Oops. I didn't use string->keyword (instead I used string->symbol and concat
the string with ":"). Thanx!
Wen-Chun