Opened 7 years ago

Closed 7 years ago

#938 closed defect (fixed)

please not SIMPLE-ERROR

Reported by: fare Owned by:
Priority: normal Milestone:
Component: Compiler Version: trunk
Keywords: Cc:

Description

Mark Nahabedian 2010-05-24 09:33:02 EDT

There are a variety of cases where CCL signals nothing more specific than SIMPLE-ERROR. It would be helpful if appropriate conditions were defined for each of these cases and those conditions were signaled.

Here's an example of a case of SIMPLE-ERROR that should be something like NO-APPLICABLE-METHOD-ERROR instead:

There is no applicable method for the generic function:
  #<STANDARD-GENERIC-FUNCTION QRES-CORE:DO-LOAD-DB-RECORD-FROM-QAPI-OBJECT
#x3000434D4C2F>
when called with arguments:
  (QRES-CORE:QAPI-PNR-SEGMENT NIL :PARENTS (#<QAPI-PNR #<LEGACY-PNR
12474990031128/M/0 AC:PZCCLE,AC:PZCCLE #x300062B32F8D> :CHANGE-TOKEN: NIL>))

NB: Was ITA bug 80692

Change History (2)

comment:1 Changed 7 years ago by fare

Comment 1 Ethan H. Schwartz 2010-06-08 10:53:07 EDT

The hyperspec suggests one can implement this by writing your own NO-APPLICABLE-METHOD:

http://www.lispworks.com/documentation/HyperSpec/Body/f_no_app.htm

(though I'm not sure how to write useful specializations on no-applicable-method...overriding the specialization on t may suffice, though)

Also, if we do introduce non-standard lisp behavior in CCL, ideally we could get SBCL to make the same change.

comment:2 Changed 7 years ago by gb

  • Resolution set to fixed
  • Status changed from new to closed

(In [15311]) Primary method on NO-APPLICABLE-METHOD signals an error of type

CCL:NO-APPLICABLE-METHOD-EXISTS.

Fixes ticket:938.

Note: See TracTickets for help on using tickets.