support for (un)reifying deferred warnings
Bug #1106268 reported by
Faré
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
New
|
Undecided
|
Unassigned |
Bug Description
ASDF 2.26.x introduces support for saving deferred warnings and re-playing them in a different session.
It currently does it by peeking and poking at the internals of SBCL (and CCL). Could you export a supported variant of that functionality in SBCL?
See the code in asdf/lisp-
To post a comment you must log in.
If I understand correctly you want to serialize and deserialize some conditions.
Which ones?
Could you just use MAKE-LOAD- FORM-SAVING- SLOTS?
Or using existing supported APIs, such as MOP?
( let ((name (sb-mop: slot-definition -name slotd)))
(list name (slot-value thing name))))
(sb- mop:class- slots class)))))
(defun thing-to-list (thing)
(let ((class (class-of thing)))
(cons (class-name class)
(mapcar (lambda (slotd)
(defun thing-from-list (class-and-slots) slots)) )))
(let ((thing (allocate-instance (find-class (car class-and-
(dolist (slot-and-value (cdr class-and-slots))
(setf (slot-value thing (first slot-and-value))
(second slot-and-value)))
thing))
?