[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
defmethod lambda list bug
- To: clisp-list@ma2s2.mathematik.uni-karlsruhe.de
- Subject: defmethod lambda list bug
- From: hkt@zkm.de (Rick Taube)
- Date: Mon, 2 May 94 16:29:08 GMT+0100
- Original-received: by NeXT.Mailer (1.87.1)
- Original-received: by NeXT Mailer (1.87.1)
- Pp-warning: Illegal Received field on preceding line
- Pp-warning: Illegal Received field on preceding line
theres a bug in clisp's defmethod that doesn't allow both optional
and keyword arguments to be supplied in a calling form. is there a
workaround aready available?? ive also tried adding a &rest before
the &key but it doesnt help. im using the clisp from
clisp/binaries/next, (lisp-implementation-version)
"January 1994"
-hkt
> (in-package :clos)
#<PACKAGE CLOS>
> (defmethod foo (a &optional b &key c))
#<STANDARD-METHOD (#<BUILT-IN-CLASS T>)>
> (foo 1 2 :c 3)
*** - EVAL/APPLY: keyword arguments for #<COMPILED-CLOSURE
#:COMPILED-FORM-49-1> should occur pairwise
1. Break> backtrace-1
- NIL
- #<SIMPLE-ERROR #x000014>
frame binding variables (~ = dynamically):
| ~ SYSTEM::*PRIN-STREAM* <--> #<UNBOUND>
- #<SIMPLE-ERROR #x000014>
- #<COMPILED-CLOSURE #:COMPILED-FORM-49-1>
- 3
- :C
- 2
- #<UNBOUND>
- #<UNBOUND>
- 1
- #<COMPILED-CLOSURE #:COMPILED-FORM-49-1>
- #<GENERIC-FUNCTION FOO>
- (2 :C 3)
- 1
- #<GENERIC-FUNCTION FOO>
EVAL frame for form (FOO 1 2 :C 3)
- #<CONCATENATED-STREAM #<STRING-INPUT-STREAM> #<SYNONYM-STREAM
*TERMINAL-IO*>>
- #<SYNONYM-STREAM *TERMINAL-IO*>
1. Break>