;;; (i.e. portably) but it's much easier using the MOP and
;;; MAP-ALL-CLASSES.
(flet ((standardized-class-p (c)
- (find-symbol (symbol-name (class-name c)) "CL")))
+ (eq (class-name c) (find-symbol (symbol-name (class-name c)) "CL"))))
(let (result)
(sb-pcl::map-all-classes
(lambda (c) (when (standardized-class-p c)
(when (and std (< std last))
(push `(:std ,c) result))))))
(assert (null result))))
+
+;; No compiler-notes for non-constant slot-names in default policy.
+(handler-case
+ (compile nil '(lambda (x y z)
+ (setf (slot-value x z)
+ (slot-value y z))))
+ (sb-ext:compiler-note (e)
+ (error e)))
+
+