Path: utzoo!utgpu!watmath!att!cbnewsc!nevin1
From: nevin1@cbnewsc.ATT.COM (nevin.j.liber)
Newsgroups: comp.lang.misc
Subject: Re: What I'd really like to see in an if-statement...
Message-ID: <2452@cbnewsc.ATT.COM>
Date: 16 Aug 89 01:22:40 GMT
References: <178@enea.se> <3829@bd.sei.cmu.edu> <5689@ficc.uu.net>
Reply-To: nevin1@cbnewsc.ATT.COM (nevin.j.liber)
Organization: AT&T Bell Laboratories
Lines: 20

In article <5689@ficc.uu.net> peter@ficc.uu.net (Peter da Silva) writes:
|In article <3829@bd.sei.cmu.edu>, firth@sei.cmu.edu (Robert Firth) writes:

|> 	if x < f() < y do ...

|> might call f() once or twice, for reasons difficult to explain to a
|> beginner.

|If the language is designed so that f() can be called twice,
|then that is a design flaw.

But is f() even called once??  Suppose x=1 and y=0.  I do the x