Path: utzoo!attcan!uunet!husc6!cmcl2!adm!smoke!gwyn From: gwyn@smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: "Numerical Recipes in C" is nonportable code Message-ID: <8515@smoke.ARPA> Date: 17 Sep 88 20:14:53 GMT References: <867@osupyr.mast.ohio-state.edu> <3200@geac.UUCP> <1430@ficc.uu.net> <1988Sep15.145026.20325@ateng.uucp> <16041@ism780c.isc.com> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 17 In article <16041@ism780c.isc.com> marv@ism780.UUCP (Marvin Rubenstein) writes: -But consider what might have happened had dpANS mandated that the compution -of a pointer to x[-1] be a valid operation. Then machines for wich the -mandated behavior is slow would be not used by people interested in high -performance. The net effect could be salubrious for the computer industry in -the long run. I doubt that any effect on the computer industry would have occurred other than reduced adherence to the postulated C standard. People writing portable applications would still not be able to compute &array[-1], since several compilers would ignore that requirement (benchmark speed is a far greater driving factor than the desires of a few sloppy programmers to compute non-existent addresses). What good would that situation accomplish? Better that the standard be widely followed and that programmers become better educated about actual portability considerations, than to encourage false hopes for availability of features that are difficult or detrimental to provide.