From: Sam S. <sd...@gn...> - 2002-06-03 14:29:51
|
> * In message <NHE...@sy...> > * On the subject of "&optional and &key lambda list keywords" > * Sent on Sun, 2 Jun 2002 10:05:36 -0700 > * Honorable "Dave Richards" <da...@sy...> writes: > > I thought I understood these two keywords, but it appears I do not. > Is it true that keyword parameters assume the existence of optional > arguments? yes. > (defun test (a &optional b &key c) > (list a b c)) > [5]> (test 1 :c 3) > > *** - EVAL/APPLY: keyword arguments for TEST should occur pairwise > 1. Break [6]> a==1 b==:c 3 is supposed to be :c the c argument is missing. <http://www.lisp.org/HyperSpec/Body/sec_3-4-1-6.html> <http://www-jcsu.jesus.cam.ac.uk/~csr21/lispfaq.html#AEN257> -- Sam Steingold (http://www.podval.org/~sds) running RedHat7.2 GNU/Linux <http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/> <http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html> I want Tamagochi! -- What for? Your pet hamster is still alive! |