From: Eckhard L. <ec...@we...> - 2006-11-01 21:07:53
|
Robert Seeger schrieb: > The spec is a little vague on a number of issues. Specifically, the > ones that I've had bite me in the past for other types of APIs are: Ok, I should update the Specification and state more clearly how these issues are solved. > * There doesn't appear to be a way to find out what the current > registered error handler is. With the current patch, call [tcl::seterrorhandler] withoud arguments. This gives you what is registered currently. > * There doesn't appear to be a way to unregister an error handler or, > to look at it another way, to set the error handler back to the default Again with the current patch, call [tcl::seterrorhandler {}] to unregister any previously set handler. I am not sure whether [tcl::seterrorhandler] is the right place/command to register the custom handler... (but this is for sure the easiest thing to change). If someone has a better idea, please let me know. Eckhard |