Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!execu!sequoia!rpp386!jfh From: jfh@rpp386.cactus.org (John F. Haugh II) Newsgroups: comp.unix.internals Subject: Re: asserts and unexpected returns (was: Re: Assert) Message-ID: <18733@rpp386.cactus.org> Date: 14 Nov 90 09:04:34 GMT References: <18647@rpp386.cactus.org> <4057@awdprime.UUCP> <18658@rpp386.cactus.org> <4093@awdprime.UUCP> <18662@rpp386.cactus.org> <4157@awdprime.UUCP> <18717@rpp386.cactus.org> <4643@segue.segue.com> Reply-To: jfh@rpp386.cactus.org (John F. Haugh II) Organization: Lone Star Cafe and BBS Service Lines: 25 X-Clever-Slogan: Recycle or Die. In article <4643@segue.segue.com> jim@segue.segue.com (Jim Balter) writes: >No one has claimed that assert cannot be made to return on some systems, >yet this is at least the third time that you have responded to some *other* >point as though that claim were being made. Can you say *strawman*? The other objector to my claim that assert() may return has claimed that implementations which have an assert() that can be made to return should be ignored, despite the fact that AT&T UNIX 5.2.1 (and all releases that I know of before it) has exactly this behavior. Dave has repeatedly stated that for all "real" UNIX's assert() never returns, without accepting that this criteria is only true for some flavors of AIX and BSD. In any case, Dave is arguing against reality - the exception proves the argument in this case, and the argument was that assert cannot be relied on to always exit. Providing the single counterexample of SCO Xenix 2.2.3 (and of course, AT&T UNIX 5.2.1) disproves his statement that assert() always exits. [ And yes, he has made that claim, before you state that this is a strawman. ] Anyhow, this is getting old, and has long strayed away from the original topic, which was to be careful of unexpected returns. -- John F. Haugh II UUCP: ...!cs.utexas.edu!rpp386!jfh Ma Bell: (512) 832-8832 Domain: jfh@rpp386.cactus.org "SCCS, the source motel! Programs check in and never check out!" -- Ken Thompson