[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OOC exception handler
Date: Fri, 1 Dec 95 06:58:40 EST
From: Mike Griebling <grieblm@trt.allied.com>
[snip]
Josef Templ actually defines an exception handling mechanism in his OFront
product. Maybe we could steal some of his ideas? He basically installs
an exception handler in his SYSTEM module which get called by a HALT with
negative numbers. This seems a lot simpler than the elaborate Modula-3
mechanism. Templ also defines lock variables to protect regions that are
not reentrant (e.g., X11 library contains non-reentrant procedures).
I agree that the Modula-2 stuff is somewhat of an overkill. I don't
understand the part about lock variable, though. What are these
variables guarding, how are locks set and freed? And why should I
worry about reentrant code?
Each back-end would be free to implement the exception handler hook as they
require.
Simple and elegant. I vote for stealing :-).
-- mva