🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #463

Re: What I'd really like to see in an if-statement...

#463
From: Robert Teisberg
Date: Fri, 11 Aug 1989 23:53
21 lines
1390 bytes
In article <545@brazos.Rice.edu> preston@titan.rice.edu (Preston Briggs) writes:
>In Pascal, < doesn't associate.  You can't write a<b<c.

True, you usually can't, but associativity (or lack thereof) is not the
reason.  In Pascal, the expression parses as:

(a<b)<c

where (a<b) is an expression with a boolean value.  If c is also
boolean, this is a legitimate (though weird) expression.  If c is not
boolean, the compiler should complain of a type clash.

>Preston Briggs
>preston@titan.rice.edu


-- 
Bob Teisberg @ Tandem Computers, Inc. | ...!rutgers!cs.utexas.edu!halley!rrt
14231 Tandem Blvd.                    | soon to be rrt@mpd.tandem.com
Austin, Texas  78728                  | (512) 244-8119
Any resemblance to the opinions of a real person or corporation is concidental.
Technical Details
Message-ID: <561@halley.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucbvax!decwrl!sun-barr!newstop!texsun!texbell!sequoia!execu!cs.utexas.edu!halley!rrt
References: <8577@batcomputer.tn.cornell.edu> <14251@haddock.ima.isc.com> <516@brazos.Rice.edu> <8606@batcomputer.tn.cornell.edu> <545@brazos.Rice.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucbvax!decwrl!sun-barr!newstop!texsun!texbell!sequoia!execu!cs.utexas.edu!halley!rrt
From: rrt@halley.UUCP (Robert Teisberg)
Newsgroups: comp.lang.misc
Subject: Re: What I'd really like to see in an if-statement...
Message-ID: <561@halley.UUCP>
Date: 11 Aug 89 23:53:00 GMT
References: <8577@batcomputer.tn.cornell.edu> <14251@haddock.ima.isc.com> <516@brazos.Rice.edu> <8606@batcomputer.tn.cornell.edu> <545@brazos.Rice.edu>
Reply-To: rrt@halley.UUCP (Robert Teisberg)
Organization: Tandem Computers, Austin, TX
Lines: 21