X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fpcl%2Flow.lisp;h=7135e5f5312058802888a061a0035fd6b0f05ffe;hb=8b313a75eb6bcc7b1c8eda798c8350b49f94861c;hp=44c4036d957ab5ccb65a39fcb590abf8fc7fbf34;hpb=4eb1a6d3ad2b7dcc19ac0ec979a1eb1eb049659a;p=sbcl.git diff --git a/src/pcl/low.lisp b/src/pcl/low.lisp index 44c4036..7135e5f 100644 --- a/src/pcl/low.lisp +++ b/src/pcl/low.lisp @@ -180,10 +180,10 @@ ;;; SET-FUN-NAME-INTERN which takes a list spec for a function ;;; name and turns it into a symbol if need be. ;;; -;;; When given a funcallable instance, SET-FUN-NAME *must* -;;; side-effect that FIN to give it the name. When given any other -;;; kind of function SET-FUN-NAME is allowed to return a new -;;; function which is "the same" except that it has the name. +;;; When given a funcallable instance, SET-FUN-NAME *must* side-effect +;;; that FIN to give it the name. When given any other kind of +;;; function SET-FUN-NAME is allowed to return a new function which is +;;; "the same" except that it has the name. ;;; ;;; In all cases, SET-FUN-NAME must return the new (or same) ;;; function. (Unlike other functions to set stuff, it does not return @@ -199,10 +199,7 @@ (typep fcn 'generic-function) (eq (class-of fcn) *the-class-standard-generic-function*)) (setf (sb-kernel:%funcallable-instance-info fcn 1) new-name) - (error 'simple-type-error - :datum fcn - :expected-type 'generic-function - :format-control "internal error: bad function type")) + (bug "unanticipated function type")) fcn) (t ;; pw-- This seems wrong and causes trouble. Tests show