From: Eric Hildum <Eric.Hildum@Japan.NCR.com>
Subject: Re: Did Intel pay UGS to kill Alpha port? Or Compaq simply doesn't care?
Date: 1999/04/19 [thread overview]
Message-ID: <371A83EA.80255C62@Japan.NCR.com> (raw)
In-Reply-To: zalmanFAAuLK.E3o@netcom.com
On VMS the error number returned in a 32 bit value was actually a bit structure.
three bits were allocated for the type of "error" with a very specific
definition. Another group of bits was allocated to indicate the facility
originating the error (standard library code, IO system, etc.) and the remainder
the actual error number itself. I always found the discipline of correctly
classifying the return values helpful in designing the code; they were:
Success - the operation had a correct result.
Informational - the operation had a correct result, and the message indicates
additional information.
Warning - the operation had a correct result, but a correctable error occured
during the operation
Error - an error occured during the operation. The operation completed, but the
results may not be correct.
Fatal Error - an error occured during the operation, and continued execution is
not possible.
The message values and associated text were built by an internal tool (SDL) and
linked in as an additional object module - the same tool was used to build all
the different header files (C, Pascal, etc.) used to support the different
compiler environments.
For some reason this does not seem to be a popular way of classifying errors;
the UNIX and Windoes style of everything is fatal and the OS will simply give up
with minimal or no useful information in case of an exception seems to be most
popular. This is the reason, I think, that most UNIX and Windows code (and code
developed by people initial trained on UNIX or Windows) is so delicate and bug
prone.
Zalman Stern wrote:
> 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-
--
---------------------------
Eric Hildum
Eric.Hildum@Japan.NCR.COM
next prev parent reply other threads:[~1999-04-19 4:00 UTC|newest]
Thread overview: 124+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-13 5:00 Did Intel pay UGS to kill Alpha port? Or Compaq simply doesn't care? N Novakovic
1999-03-14 5:00 ` Compiler for Alpha/Linux (Re: " News Man
1999-03-15 5:00 ` Chris Petersen
1999-03-15 5:00 ` Clint Comes
[not found] ` <36EEE5F6.69F7@world.std.com>
[not found] ` <7cog3r$hj8$1@plonk.apk.net>
1999-03-21 5:00 ` N Novakovic
1999-03-20 5:00 ` Terry C. Shannon
1999-03-20 5:00 ` Robert Harley
1999-03-20 5:00 ` Zalman Stern
1999-03-21 5:00 ` Jan Vorbrueggen
1999-03-22 5:00 ` Zalman Stern
1999-03-23 5:00 ` N Novakovic
1999-03-25 5:00 ` Cameron Laird
1999-04-08 4:00 ` Jan Vorbrueggen
1999-04-08 4:00 ` John Stone
1999-04-08 4:00 ` Ian Kemmish
1999-04-09 4:00 ` Steven J. Luther
1999-04-09 4:00 ` Terry C Shannon
1999-04-08 4:00 ` Jan Vorbrueggen
1999-04-08 4:00 ` Andy Glew
1999-04-10 4:00 ` Jeff Kenton
1999-04-12 4:00 ` Maynard Handley
1999-04-12 4:00 ` Andrew Reilly
1999-04-13 4:00 ` Andy Freeman
1999-04-13 4:00 ` Jan Vorbrueggen
1999-04-13 4:00 ` Andy Freeman
1999-04-14 4:00 ` Zalman Stern
1999-04-14 4:00 ` Andy Freeman
1999-04-16 4:00 ` Maynard Handley
1999-04-13 4:00 ` Zalman Stern
1999-04-13 4:00 ` Larry Kilgallen
1999-04-13 4:00 ` Zalman Stern
1999-04-13 4:00 ` TTK Ciar
1999-04-14 4:00 ` Zalman Stern
1999-04-14 4:00 ` Jan Gray
1999-04-14 4:00 ` TTK Ciar
1999-04-14 4:00 ` Larry Kilgallen
1999-04-24 4:00 ` Exception handling Daniel P. B. Smith
1999-04-24 4:00 ` Zalman Stern
1999-04-24 4:00 ` Daniel P. B. Smith
1999-04-25 4:00 ` Zalman Stern
1999-04-25 4:00 ` Erik Corry
1999-05-06 4:00 ` Greg Law
1999-05-06 4:00 ` Fragile Base Class Erik Corry
1999-05-06 4:00 ` Exception handling Zalman Stern
1999-04-25 4:00 ` Andi Kleen
1999-04-16 4:00 ` Did Intel pay UGS to kill Alpha port? Or Compaq simply doesn't care? Maynard Handley
1999-04-16 4:00 ` Zalman Stern
1999-04-19 4:00 ` Eric Hildum [this message]
1999-04-18 4:00 ` Samuel Paik
1999-04-19 4:00 ` Ketil Z Malde
1999-04-19 4:00 ` Fred Kleinsorge
1999-04-22 4:00 ` dejadan7
1999-04-23 4:00 ` Adam Price
1999-04-18 4:00 ` Exceptions, Error codes, and Wrappers Andy Glew
1999-04-19 4:00 ` Hoff Hoffman
1999-04-14 4:00 ` Did Intel pay UGS to kill Alpha port? Or Compaq simply doesn't care? TTK Ciar
[not found] ` <F9zI7t <371ACB9F.F9A9710@webnexus.com>
1999-04-19 4:00 ` Martin Vorlaender
1999-04-20 4:00 ` Samuel Paik
1999-04-10 4:00 ` TTK Ciar
1999-04-12 4:00 ` Jan Vorbrueggen
1999-04-12 4:00 ` TTK Ciar
1999-04-12 4:00 ` Maynard Handley
1999-04-12 4:00 ` Jan Vorbrueggen
1999-04-12 4:00 ` Peter da Silva
1999-04-13 4:00 ` N Novakovic
1999-04-16 4:00 ` Peter Mayne
1999-04-16 4:00 ` Zalman Stern
1999-04-16 4:00 ` Zalman Stern
1999-04-19 4:00 ` Peter Mayne
1999-04-20 4:00 ` Zalman Stern
1999-03-21 5:00 ` Anil T Maliyekke
1999-03-22 5:00 ` Chris Petersen
1999-03-22 5:00 ` Chris Petersen
1999-03-25 5:00 ` Jeff and Beth Donsbach
1999-04-08 4:00 ` Jan Vorbrueggen
1999-03-22 5:00 ` John Aldridge
1999-03-23 5:00 ` N Novakovic
1999-03-23 5:00 ` Network effect (was Re: Did Intel pay UGS to kill Alpha port?...) Steven Correll
1999-03-24 5:00 ` Toon Moene
1999-03-24 5:00 ` Bruce Hoult
1999-03-24 5:00 ` Peter Seebach
1999-03-24 5:00 ` Terry C. Shannon
1999-03-24 5:00 ` Maynard Handley
1999-03-24 5:00 ` Jeffrey J. Potoff
1999-03-25 5:00 ` Maynard Handley
1999-03-25 5:00 ` George Cornelius
1999-03-26 5:00 ` Allen J. Baum
1999-03-27 5:00 ` Larry Kilgallen
1999-03-26 5:00 ` Larry Kilgallen
1999-03-25 5:00 ` Pete Zaitcev
1999-03-25 5:00 ` Alan Frisbie
1999-03-25 5:00 ` Rob Rodgers
1999-03-25 5:00 ` Maynard Handley
1999-03-25 5:00 ` Jeffrey J. Potoff
1999-03-25 5:00 ` Peter Seebach
1999-03-25 5:00 ` Consumers Reports (was: Network effect ...) Dennis O'Connor
1999-03-26 5:00 ` Zalman Stern
1999-03-26 5:00 ` Peter Seebach
1999-03-26 5:00 ` Network effect (was Re: Did Intel pay UGS to kill Alpha port?...) Terry C. Shannon
1999-03-25 5:00 ` Patrick F. McGehearty
1999-03-26 5:00 ` Pete Zaitcev
1999-03-26 5:00 ` Peter da Silva
1999-03-29 5:00 ` Joe Pfeiffer
1999-03-25 5:00 ` Aaron Spink
1999-03-26 5:00 ` Auto Security (was Re: Network effect (was Re: Did Intel pay UGS to kill Alpha port?...)) Chris
1999-03-24 5:00 ` Network effect (was Re: Did Intel pay UGS to kill Alpha port?...) Terry C. Shannon
1999-03-27 5:00 ` Larry D Bohan, Jr
1999-03-27 5:00 ` JohnC
1999-03-28 5:00 ` Larry D Bohan, Jr
1999-03-28 5:00 ` Gary Heston
1999-03-28 5:00 ` Peter da Silva
1999-03-27 5:00 ` Mark
1999-03-27 5:00 ` Resistance must organize (was Re: Network effect Paul DeMone
1999-03-27 5:00 ` Mark
1999-03-28 5:00 ` Usenet formatting (was Re: Resistance must organize) Bengt Larsson
1999-03-28 5:00 ` Mark
1999-03-30 5:00 ` Bengt Larsson
1999-03-28 5:00 ` John Moreno
1999-03-30 5:00 ` Zalman Stern
1999-03-30 5:00 ` Bengt Larsson
1999-03-30 5:00 ` Mark Rogers
1999-04-01 5:00 ` Eric Hildum
1999-03-31 5:00 ` John Moreno
1999-03-30 5:00 ` Network effect (was Re: Did Intel pay UGS to kill Alpha port?...) Joe Keane
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox