CLHS 
Author Message
 CLHS

CLHS section DEFINE CONDITION

(define-condition ate-too-much (error)
     ((person :initarg :person :reader ate-too-much-person)
      (weight :initarg :weight :reader ate-too-much-weight)
      (kind-of-food :initarg :kind-of-food
                    :reader :ate-too-much-kind-of-food)))
                  ----------^

CLHS section RESTART-CASE

     (handler-bind ((error #'(lambda (c)
                             (declare (ignore condition))
                  ----------------------------^^^^^^^^^
                             (invoke-restart 'my-restart 7))))

Not sure it will be useful, I've found some more such
typos in HS.

--



Fri, 15 Aug 2003 23:42:10 GMT  
 CLHS

Quote:
> CLHS section DEFINE CONDITION

> (define-condition ate-too-much (error)
>      ((person :initarg :person :reader ate-too-much-person)
>       (weight :initarg :weight :reader ate-too-much-weight)
>       (kind-of-food :initarg :kind-of-food
>                     :reader :ate-too-much-kind-of-food)))
>                   ----------^

> CLHS section RESTART-CASE

>      (handler-bind ((error #'(lambda (c)
>                              (declare (ignore condition))
>                   ----------------------------^^^^^^^^^
>                              (invoke-restart 'my-restart 7))))

> Not sure it will be useful, I've found some more such
> typos in HS.

You can send them to me privately.  I keep a file of such reports, though
have to date not done a whole lot with that.  It's on my low-grade to-do
list...

Note, though, this is a bug in ANSI CL, not in CLHS.  CLHS tries to be
true to the ANSI CL sources, so fixing it is ... tricky.  CLHS wants to
present itself as a mechanical translation of ANSI CL.  That's a tricky
proposition.



Fri, 15 Aug 2003 23:51:21 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. (format t ...) in CLHS

2. CLHS Hermeneutics: MERGE-PATHNAMES with a string and a LP

3. CLHS Hermeneutics: COMPILE-FILE-PATHNAME behavior.

4. CLHS on CASE: case key values

5. Known inconsistencies or bugs in CLHS?

6. CLHS - (redefining) setf expanders and DEFINE-SETF-METHOD

7. CLHS: Fill pointer definition: off by one?

8. CLHS example for NINTERSECTION

9. CLHS becomes stricter ?

10. CLHS unwind-protect example

11. CLHS for the Pilot?

 

 
Powered by phpBB® Forum Software