If you write *error* function as local variable and your *error* is interanal function no need to save and restore original *error* function:One suggestion, if you are going to redefine the *error* function, you should consider saving the old *error* function and restoring it at the completion of your routine.
The changed version of error handler will exist only during work of your function. You can will be convinced of it if will lead experiment. It seems to me is the extremely convenient than each time to save and restore the handler.Code:(defun myFun (/ *error* ....) (defun *error*(msg) ..... ); end of *error* ...... ); end of myFun




Reply With Quote


Bookmarks