From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,e7e13c943c611b62 X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1164f8,be3d6a6131c61fa7 X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,be3d6a6131c61fa7 X-Google-Attributes: gid102b75,public From: Andy Freeman Subject: Re: Did Intel pay UGS to kill Alpha port? Or Compaq simply doesn't care? Date: 1999/04/14 Message-ID: <7f2bvq$c7b$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 466309619 References: <36E9F2A0.9A401A09@pacific.net.sg> <7cj96m$h07$1@plonk.apk.net> <7eih45$ln2$1@news.doit.wisc.edu> <7eu1cd$ils$1@m2.c2.telstra-mm.net.au> <7evlol$1td$1@nnrp1.dejanews.com> <7f02t4$ef2$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x7.dejanews.com:80 (Squid/1.1.22) for client 38.28.78.42 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Apr 14 15:24:52 1999 GMT Newsgroups: comp.arch,comp.sys.dec,vmsnet.alpha X-Http-User-Agent: Mozilla/4.04 [en] (Win95; U) In article zalman@netcom.com (Zalman Stern) wrote: > Andy Freeman (anamax@earthlink.net) wrote: > : Because the person who compiled it decided that it wouldn't signal > : exceptions. Maybe said person could have made a different decision, > : but .... > > In which case you need an "error adapter" function to deal with this. My favorite is something like: #ifdef CHECK_ERR #define EXPECT_ZERO(f) {if (!(f)) } #else #define EXPECT_ZERO(f) {(void) f} #endif The #defines for the "errno setting procedures" are analogous. I don't see a huge benefit to an exception model here, and any benefit seems completely swamped by the costs. (The arguments over C++, Ada, Java "prove" that it isn't simple and since it is overhead....) How often is the response something other than punt or enter debugger and how much should I pay for those exceptional cases? BTW - Any "solution" which requires full source or adherence to "the one true way" by other people isn't. -andy -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own