[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

defmethod lambda list bug



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>