robert-strandh / SICL

A fresh implementation of Common Lisp
Other
1.07k stars 79 forks source link

Define condition unable-to-compute-class-precedence-list #86

Closed robert-strandh closed 7 years ago

robert-strandh commented 7 years ago

In the file Code/CLOS/class-finalization-support.lisp, in the function compute-class-precedence-list-assuming-superclasses-finalized, a simple error ("can't compute the class precedence list") is signaled.

To avoid the simple error, in the file Code/CLOS/conditions.lisp, define a new condition named UNABLE-TO-COMPUTE-CLASS-PRECEDENCE-LIST modeled after the other conditions in that file. Do not use the :REPORT option. Define a slot %OFFENDING-CLASS with reader OFFENDING-CLASS.

In the file Code/CLOS/condition-reporters-english.lisp, define a method for reporting the new condition, modeled after the other methods in this file.

robert-strandh commented 7 years ago

Done.