Path: news.cs.au.dk!news.net.uni-c.dk!howland.erols.net!europa.netcrusader.net!194.176.220.129!newsfeed.icl.net!newsfeed.icl.net!colt.net!newspeer.clara.net!news.clara.net!news.vas-net.net!195.238.2.15.MISMATCH!skynet.be!poster!not-for-mail From: Atle Newsgroups: comp.lang.beta Subject: Re: Static vs. dynamic exceptions Date: Wed, 21 Jun 2000 18:59:23 -0100 Organization: Belgacom Skynet SA/NV Lines: 28 Message-ID: <39511E9B.C3F0FBC8@skynet.be> References: <20000619173848.8485.qmail@noatun.mjolner.dk> <8im02p$8s5j$1@xinwen.cs.au.dk> <8infta$9jn7$1@xinwen.cs.au.dk> <394F9765.21D28D31@skynet.be> NNTP-Posting-Host: dialup33.charleroi.skynet.be Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news0.skynet.be 961606475 2142 195.238.7.33 (21 Jun 2000 16:54:35 GMT) X-Complaints-To: abuse@skynet.be NNTP-Posting-Date: 21 Jun 2000 16:54:35 GMT X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i686) X-Accept-Language: en Xref: news.cs.au.dk comp.lang.beta:12479 Peter von der Ahé wrote: > > >>>>> "A" == Atle writes: > > A> Peter von der Ahé wrote: > >> Lets say that we have the well known exception pattern and a try > >> pattern. Normally when an uncaught/unbound static exception > >> occurs we end up with a runtime error. (In my experience most of > >> the errors in the Mjolner tools are unbound exceptions.) > > A> The easiest would be to do it in C, and call it as a C-routine. > > Do what in C? I would imagine that the easiest way is to build this with an interrupt-like interface, cfr, the way we used to interface with MSDOS, MOV AH, Function MOV DX, StringParm ; I don't remember this now, 20 years after :-) INT 21H or CDOS with INT E4 and a more coherent way to specify parameters. But in any case, the exception handlers would be pointed to by an array of function pointers, indexed by AH. To me, this seems to model the C++ exceptions more closely ... but of course, people stick with what they know, and I know the 8086 and C ... I'm sorry for this off-topic post, but since this exception model is being discussed as a possible part of Beta ... Atle