forms. (lp#823014)
* bug fix: OPEN :IF-EXISTS :APPEND now returns correct FILE-POSITION before
first write (lp#561642).
+ * bug fix: compiled closures from EVAL could not be DESCRIBEd. (lp#824974)
changes in sbcl-1.0.50 relative to sbcl-1.0.49:
* enhancement: errors from FD handlers now provide a restart to remove
(format stream "~@:_Source file: ~A" namestring))
((sb-di:debug-source-form source)
(format stream "~@:_Source form:~@:_ ~S"
- (sb-di:debug-source-form source)))
- (t (bug "Don't know how to use a DEBUG-SOURCE without ~
- a namestring or a form."))))))))
+ (sb-di:debug-source-form source)))))))))
#+sb-eval
(let ((source (sb-eval:interpreted-function-source-location function)))
(when source
;;; support for DESCRIBE tests
(defstruct to-be-described a b)
(defclass forward-describe-class (forward-describe-ref) (a))
+(let ((sb-ext:*evaluator-mode* :compile))
+ (eval `(let (x) (defun closure-to-describe () (incf x)))))
;;; DESCRIBE should run without signalling an error.
-(describe (make-to-be-described))
-(describe 12)
-(describe "a string")
-(describe 'symbolism)
-(describe (find-package :cl))
-(describe '(a list))
-(describe #(a vector))
+(with-test (:name (describe :no-error))
+ (describe (make-to-be-described))
+ (describe 12)
+ (describe "a string")
+ (describe 'symbolism)
+ (describe (find-package :cl))
+ (describe '(a list))
+ (describe #(a vector))
+;; bug 824974
+ (describe 'closure-to-describe))
;;; The DESCRIBE-OBJECT methods for built-in CL stuff should do
;;; FRESH-LINE and TERPRI neatly.