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: 102b75,be3d6a6131c61fa7 X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,be3d6a6131c61fa7 X-Google-Attributes: gid1164f8,public From: handleym@ricochet.net (Maynard Handley) Subject: Re: Did Intel pay UGS to kill Alpha port? Or Compaq simply doesn't care? Date: 1999/04/12 Message-ID: #1/1 X-Deja-AN: 465497372 References: <36E9F2A0.9A401A09@pacific.net.sg> <7cj96m$h07$1@plonk.apk.net> <7eih45$ln2$1@news.doit.wisc.edu> Organization: Apple Computer, Inc. Newsgroups: comp.arch,comp.sys.dec,vmsnet.alpha In article , jkenton@world.std.com (Jeff Kenton) wrote: >"Andy Glew" writes: > >>I don't know, but I suspect that the moral here is somethig like "don't tell >>software anything it doesn't need to know for semantic correctness - even >>if it would be nice to let software know for performance tuning". > >Or, "don't check for an error condition if you don't have a clue what you're >going to do when you find it." Am I the only person in the world who writes every single damn function he types up as #if DEBUG #define FLAG_ERROR(error) if(error!=noErr) Debugger() #else #define FLAG_ERROR(error) #endif error=CallSomeFunc(...); FLAG_ERROR(error); I have never seen any other code that does this, yet the pain it saves is immeasurable. Regardless of whether or not I can do anything useful subsequently with the error, the very fact that I catch the problem in the debugger at the source, not 50 corrupted memory blocks later is extraordinarily useful. Maynard