Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!umcp-cs!cvl!umd5!zben From: zben@umd5 (Ben Cranston) Newsgroups: net.lang.c Subject: Re: Question on getopt() Message-ID: <1186@umd5> Date: Thu, 14-Aug-86 14:10:18 EDT Article-I.D.: umd5.1186 Posted: Thu Aug 14 14:10:18 1986 Date-Received: Thu, 14-Aug-86 21:56:22 EDT References: <1009@bu-cs.bu-cs.BU.EDU> Reply-To: zben@umd5.umd.edu (Ben Cranston) Organization: University of Maryland, College Park Lines: 29 Summary: Sometimes more information is needed... Sez: guy@sun.uucp (Guy Harris) > Anybody with source has certainly learned by now that the UNIX documentation > is only a rough approximation to the truth. The source code is, in some > cases, the final arbiter; in others, the documentation is correct... Sez: bzs@bu-cs.BU.EDU (Barry Shein) > No, no, the COMPUTER is the final arbiter. When in doubt make up a few > little code samples and see what they do. This doesn't require > sources, except your own and works well, I'm serious. It never ceases > to astound me how many times people come in to my office and ask me a > question that is amply answered with "go ask the computer, why bother > me, I can't simulate a computer as fast as it can simulate itself..." While I agree generally, there are sometimes questions dealing with writing transportable code that should definitely *NOT* be determined by the use of trivial test programs. A code fragment like: a[i] = b[i++]; for example is likely to do different things on different machines, and only an experienced human being can give you the answer you REALLY want: "Yes, it does what you want on *THIS* machine, but *DON'T* use code like this because it is not portable." -- umd5.UUCP <= {seismo!umcp-cs,ihnp4!rlgvax}!cvl!umd5!zben Ben Cranston zben @ umd2.UMD.EDU Kingdom of Merryland Sperrows 1100/92 umd2.BITNET "via HASP with RSCS"