Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!uunet!mcvax!kth!sunic!liuida!prosys!ath From: ath@helios.prosys.se (Anders Thulin) Newsgroups: comp.lang.c Subject: Re: What I'd really like to see in an if-statement... Message-ID: <456@helios.prosys.se> Date: 6 Aug 89 06:16:18 GMT References: <5024@alvin.mcnc.org> <1300@atanasoff.cs.iastate.edu> Organization: Programsystem AB, Linkoping, SWEDEN Lines: 17 In article <1300@atanasoff.cs.iastate.edu> hascall@atanasoff.cs.iastate.edu.UUCP (John Hascall) writes: -In article <5024@alvin.mcnc.org> spl@mcnc.org.UUCP (Steve Lamont) writes: - -} if ( foo < bar < baz ) ... -}Is there any reason why such a construction is not practical? If not, why has -}no language (that I am aware of or can program in) implemented such a -}construction? Good idea or bad idea? - - It's in COBOL (along with everything else). - To answer your other question, COBOL is a bad idea. It's also in BCPL (with the semantics of foo < bar && bar < baz). BCPL isn't. -- Anders Thulin, Programsystem AB, Teknikringen 2A, S-583 30 Linkoping, Sweden ath@prosys.se {uunet,mcvax}!sunic!prosys!ath