« Retour au blog de badr-005

RAP ( hip hop)

RAP ( hip hop)

break dance
break is used as a way of inserting temporary debugging ``breakpoints'' in a program, not as a way of signaling errors. For this reason, break does not take the continue-format-control argument that cerror takes. This and the lack of any possibility of interception by condition handling are the only program-visible differences between break and cerror.

The user interface aspects of break and cerror are permitted to vary more widely, in order to accomodate the interface needs of the implementation. For example, it is permissible for a Lisp read-eval-print loop to be entered by break rather than the conventional debugger.

break could be defined by:


(defun break (&optional (format-control "Break") &rest format-arguments)
(with-simple-restart (continue "Return from BREAK.")
(let ((*debugger-hook* nil))
(invoke-debugger
(make-condition 'simple-condition
:format-control format-control
:format-arguments format-arguments))))

# Posté le mercredi 14 novembre 2007 18:39

Modifié le lundi 03 décembre 2007 14:50

« Article précédent : wydad vs raja (l'ambiance de derby 103...

Article suivant : INSCRIT TOI ! »