Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.lang Subject: Re: re: IF KICK-BACK GREATER THAN... Message-ID: <2209@umcp-cs.UUCP> Date: Thu, 3-Jan-85 16:40:17 EST Article-I.D.: umcp-cs.2209 Posted: Thu Jan 3 16:40:17 1985 Date-Received: Sat, 5-Jan-85 02:10:47 EST References: <797@pucc-i.UUCP> <26400020@uiucdcs.UUCP> Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 25 > Also, as the following extraction of VAX-code demonstrates, the > set-expression appears to be the less tedious of the two alternatives, > to wit: (followed by lots of assembly) Actually, all this proves is that the Pascal compiler ``pc'' produces pretty lousy code. Since the expressions if x in [a..b] then and if (x >= a) and (x <= b) then are equivalent for x, a, b \elem Z (integers), the code produced should ideally be equivalent. -- (This line accidently left nonblank.) In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (301) 454-7690 UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland