🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2894

Re: bsearch of empty array

#2894
From: Doug Gwyn
Date: Fri, 17 May 1991 03:54
13 lines
1397 bytes
In article <KERS.91May16122021@cdollin.hpl.hp.com> kers@hplb.hpl.hp.com (Chris Dollin) writes:
>Now, which implementations have better ``quality'' - those that are happy with
>a null pointer and no elements (where the meaning is ``obvious''), or those
>that object (and hence force your code to be more portable) .... :-)

Well, it's a matter of opinion.  The best implementation for some of us
(who are trying to develop portable software) would be one that detects
the nonportable usage (null pointer argument) and makes an appropriate
squawking sound, so we can fix our programs now rather than much later
when the bug causes mysterious behavior on another system.  Others would
say that the implementation should not waste any cycles testing for
things that it is not required to handle.  Still others would agree with
you that it would be nice for the implementation to accept this usage.
Technical Details
Message-ID: <16176@smoke.brl.mil>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uwm.edu!psuvax1!rutgers!cmcl2!adm!smoke!gwyn
References: <KERS.91May15154937@cdollin.hpl.hp.com> <16167@smoke.brl.mil> <KERS.91May16122021@cdollin.hpl.hp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uwm.edu!psuvax1!rutgers!cmcl2!adm!smoke!gwyn
From: gwyn@smoke.brl.mil (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: bsearch of empty array
Message-ID: <16176@smoke.brl.mil>
Date: 17 May 91 03:54:30 GMT
References: <KERS.91May15154937@cdollin.hpl.hp.com> <16167@smoke.brl.mil> <KERS.91May16122021@cdollin.hpl.hp.com>
Organization: U.S. Army Ballistic Research Laboratory, APG, MD.
Lines: 13