[ cclan-Bugs-1027739 ] ASDF should use define-condition :report
"SourceForge.net" <[email protected]> Tue, 14 Sep 2004 10:06:30 -0700
| Newsgroups | gmane.lisp.cclan.bugs |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1027739, was opened at 2004-09-14 01:32 Message generated for change (Settings changed) made by kevinrosenberg You can respond by visiting:=20 https://sourceforge.net/tracker/?func=3Ddetail&atid=3D393636&aid=3D102773= 9&group_id=3D28536 Category: asdf Group: None >Status: Closed >Resolution: Invalid Priority: 5 Submitted By: J=F6rg H=F6hle (hoehle) Assigned to: Daniel Barlow (dan_b) Summary: ASDF should use define-condition :report Initial Comment: Hi, I wondered why ASDF-1.86.1 badly reports errors in=20 CLISP: "(asdf:oos "asdf:load-op "clsql-odbc") ; loading system definition from=20 S:\Code\Lisp\clsql-3.0.3\clsql-odbc.asd into #<PACKAGE=20 ASDF14729> ;; Loading file S:\Code\Lisp\clsql-3.0.3\clsql-odbc.asd=20 ... ;; Loaded file S:\Code\Lisp\clsql-3.0.3\clsql-odbc.asd *** - Condition of type ASDF:MISSING-COMPONENT. The following restarts are available: [...]" The specific error message "missing component foo" does=20 not appear in the debugger. Bruno Haible replied in clisp-devel: http://sourceforge.net/mailarchive/forum.php?thread_id=3D 5563867&forum_id=3D6768 >The problem is precisely that ASDF uses a PRINT-OBJECT=20 method. From >ANSI CL you can see that PRINT-OBJECT is made for=20 STANDARD-OBJECT and >STRUCTURE-OBJECT instances, however the class=20 CONDITION is _not_ >mandated to be a subclass of one of them. Therefore=20 according to ANSI >CL, a PRINT-OBJECT method for a condition class needs=20 not have an >effect at all. And that"s why they define a different=20 means for >customizing the printing of conditions: The :REPORT=20 option of >DEFINE-CONDITION. >Summary: ASDF needs to use the :REPORT option of=20 DEFINE-CONDITION, >not a PRINT-OBJECT method. Regards, J=F6rg H=F6hle. ---------------------------------------------------------------------- Comment By: Bruno Haible (haible) Date: 2004-09-14 10:53 Message: Logged In: YES=20 user_id=3D5923 Bruno Haible has now been convinced that ANSI CL contains=20 sufficient wording to mandate that printing of condition objects=20 must go through PRINT-OBJECT. As a consequence, GNU=20 CLISP has been changed to take PRINT-OBJECT methods on=20 condition classes into accound. I no longer claim that it's a bug=20 in ASDF.=20 ---------------------------------------------------------------------- You can respond by visiting:=20 https://sourceforge.net/tracker/?func=3Ddetail&atid=3D393636&aid=3D102773= 9&group_id=3D28536 ------------------------------------------------------- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m