#83: problem with error reporting on undefined class during make instance ------------------------+--------------------------------------------------- Reporter: ehuelsmann | Owner: somebody Type: defect | Status: new Priority: major | Milestone: Component: CLOS | Version: Keywords: | ------------------------+--------------------------------------------------- CL-USER(25): (defclass c (d) ((q :initarg :q))) #<STANDARD-CLASS C {B5BEE0}>
CL-USER(26): (make-instance 'c :q t) Debugger invoked on condition of type PROGRAM-ERROR: Invalid initarg :Q.
The error should say instead something about d not being defined.
This in build of a freshly updated trunk abcl
#83: problem with error reporting on undefined class during make instance --------------------------+------------------------------------------------- Reporter: ehuelsmann | Owner: mmohamed Type: enhancement | Status: accepted Priority: major | Milestone: Component: CLOS | Version: Resolution: | Keywords: --------------------------+------------------------------------------------- Changes (by mmohamed):
* owner: somebody => mmohamed * status: new => accepted * type: defect => enhancement
#83: problem with error reporting on undefined class during make instance --------------------------+------------------------------------------------- Reporter: ehuelsmann | Owner: mmohamed Type: enhancement | Status: accepted Priority: major | Milestone: Component: CLOS | Version: Resolution: | Keywords: --------------------------+-------------------------------------------------
Comment(by ehuelsmann):
mmohamed, thanks for the patch, unfortunately, it completely disables the possibility (supported by CLHS) to forward-reference classes like this:
(defclass b (a) ())
(defclass a () ())
(make-instance 'b)
I'm affraid the patch isn't quite good enough. Thank you very much for the effort though, it's really much appreciated.
#83: problem with error reporting on undefined class during make instance --------------------------+------------------------------------------------- Reporter: ehuelsmann | Owner: mmohamed Type: enhancement | Status: accepted Priority: major | Milestone: Component: CLOS | Version: Resolution: | Keywords: --------------------------+-------------------------------------------------
Comment(by ehuelsmann):
mmohamed, I'm thinking along the lines of the patch I just attached, but that's not good enough, because it doesn't say there's a forward- referenced class involved.
#83: problem with error reporting on undefined class during make instance --------------------------+------------------------------------------------- Reporter: ehuelsmann | Owner: mmohamed Type: enhancement | Status: accepted Priority: major | Milestone: 0.24 Component: CLOS | Version: Resolution: | Keywords: --------------------------+------------------------------------------------- Changes (by ehuelsmann):
* milestone: => 0.24
Comment:
With the prototype patch, this ticket should be doable in the relatively short term.
#83: problem with error reporting on undefined class during make instance --------------------------+------------------------------------------------- Reporter: ehuelsmann | Owner: mmohamed Type: enhancement | Status: closed Priority: major | Milestone: 0.24 Component: CLOS | Version: Resolution: fixed | Keywords: --------------------------+------------------------------------------------- Changes (by ehuelsmann):
* status: accepted => closed * resolution: => fixed
Comment:
Fixed in r13217: the error is now about finalizing a FORWARD-REFERENCED- CLASS being impossible.
armedbear-ticket@common-lisp.net