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: zalman@netcom.com (Zalman Stern) Subject: Re: Did Intel pay UGS to kill Alpha port? Or Compaq simply doesn't care? Date: 1999/04/16 Message-ID: #1/1 X-Deja-AN: 467272920 Sender: zalman@netcom15.netcom.com References: <36E9F2A0.9A401A09@pacific.net.sg> <7cj96m$h07$1@plonk.apk.net> <7eih45$ln2$1@news.doit.wisc.edu> Organization: ICGNetcom Followup-To: comp.arch,comp.sys.dec,vmsnet.alpha Newsgroups: comp.arch,comp.sys.dec,vmsnet.alpha Maynard Handley (handleym@ricochet.net) wrote: : As I pointed out elsewhere, that's irrelevant when you are making calls : into the OS and problems are returned via error numbers. Unless, I guess, : you put a wrapper around every such call throwing an error, which is : basically identical to my scheme. Yes, though many C++ zealots do this. (Or use standard library facilities which signal errors via exceptions.) Point being that they can get the benefit of a debug trace on any error in at least one widely used programming style. All I'm arguing for is trying to make the tools provide the support instead of doing it in an ad hoc fashion all over the place. And I've offered some evidence that this is indeed possible. Even if you want to stick with the basic return an error code mechanism. Of course unless this happens in some semi-standard way, it won't be very useful. Perhaps the next round of C standardization can put in a non-C++ like exception mechanism. (Another thing that would be incredibly useful is if the debugger always knew the textual mapping of error code values. This is not so bad on the Mac or UNIX as OS error codes are small integers and declared in one file. But Windows error codes are not small integers and I find the tools for converting them to something readable inadequate. Though I do recall some new tool being added to VC++ 6. Windows error codes are a vaguely like on VMS, but I recall always having a text catalog for the error messages when I worked on VMS and I think the debugger had a feature to do the lookup. We can also talk about library support for taking a stack trace and writing it to an output stream. Somehow no matter how hard I try, my bugs crawl onto someone else's machine and its not always possible to have them drive a debugger for me...) -Z-