Skip to content

Commit 5c9f7ed

Browse files
authored
Merge pull request #1457 from clasp-developers/fix-dmc
Signal error for :ARGUMENTS in DEFINE-METHOD-COMBINATION at eval.
2 parents 0569723 + f3cb9fb commit 5c9f7ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lisp/kernel/clos/combin.lisp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,9 @@ argument list designator."
366366
(unless (symbolp name) (syntax-error))
367367
(let ((x (first body)))
368368
(when (and (consp x) (eql (first x) :ARGUMENTS))
369-
(error "Option :ARGUMENTS is not supported in DEFINE-METHOD-COMBINATION.")))
369+
(warn "Option :ARGUMENTS is not supported in DEFINE-METHOD-COMBINATION.")
370+
(return-from define-complex-method-combination
371+
`(error "Option :ARGUMENTS is not supported in DEFINE-METHOD-COMBINATION."))))
370372
(let ((x (first body)))
371373
(when (and (consp x) (eql (first x) :GENERIC-FUNCTION))
372374
(setf body (rest body))

0 commit comments

Comments
 (0)