chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] how the second argument to ERROR is handled


From: Marco Maggi
Subject: [Chicken-users] how the second argument to ERROR is handled
Date: Sun, 21 Jul 2019 09:03:33 +0200

Ciao,

  with CHICKEN 5.1.0, is the following correct:

      (import (scheme) (chicken base) (chicken condition))

      (call/cc
          (lambda (escape)
            (with-exception-handler
                (lambda (E)
                  (escape (list (get-condition-property E 'exn 'location)
                                (get-condition-property E 'exn 'message)
                                (get-condition-property E 'exn 'arguments))))
              (lambda ()
                (error 1 2 3)))))
      => '(#f 1 (2 3))

or should the "message" property be #f?

TIA
-- 
Marco Maggi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]