Pass back the procedure on certain signature violations.

Closes PR 11117.
This commit is contained in:
Mike Sperber 2010-08-23 10:08:40 +02:00
parent 8d2db5f4bf
commit 225a42b832

View File

@ -342,9 +342,11 @@
(values thing #f))))
(cond
((not (procedure? proc))
(signature-violation proc self #f #f))
(signature-violation proc self #f #f)
thing)
((not (procedure-arity-includes? proc arg-count)) ; #### variable arity
(signature-violation proc self "falsche Anzahl von Parametern" #f))
(signature-violation proc self "falsche Anzahl von Parametern" #f)
thing)
(else
(attach-name
(object-name proc)