kgg@sii.UUCP (Kenn Goutal) (10/10/86)
In a recent article, Dave Brosious asks if there is a language that supports constructs such as: IF (4 < x < 8) THEN blabla The answer is, yes, at least one: SAIL -- Stanford AI Language. SAIL is an ALGOL derivative at heart, with two large extensions, one to support sets and operations thereon and one to support lists and operations thereon. The requested construct was a part of the Algol part of the language. My all-time favourite programming language. -- Kenn Goutal ...decvax!savax!sii!siia!kgg
bzs@bu-cs.BU.EDU (Barry Shein) (10/12/86)
Doesn't SPSS support something like "IF a .LT. b .LT. c"? I seem to remember this but it's been years. Not sure if SPSS is a "programming language", but then again you should have seen some of the things we used to do with it :-) -Barry Shein, Boston University
darrelj@sdcrdcf.UUCP (Darrel VanBuer) (10/16/86)
In PL/I, a<b<c is a legal expression, but doesn't mean (a<b)&(b<c); it means compare a<b, yielding a BIT(1) which is 1 or 0 for True/false; coerce the bit to a number (0 or 1) and compare to c. Thus 4<5<2 is true and -2<-1<0 is false! A cautionary tale in the confused world of real programming languages from ... -- Darrel J. Van Buer, PhD System Development Corp. 2525 Colorado Ave Santa Monica, CA 90406 (213)820-4111 x5449 ...{allegra,burdvax,cbosgd,hplabs,ihnp4,orstcs,sdcsvax,ucla-cs,akgua} !sdcrdcf!darrelj VANBUER@USC-ECL.ARPA
cole@sas.UUCP@ndmce.uucp (Tom Cole) (10/17/86)
Line eater? Eat this! In a response to a question about languages that support the construct if (x < y < z ) bla bla bla, Barry Shein replies something to the effect that SPSS supports something like this. For the record, so does SAS, but then the more important question is are either of these really considered languages by you guys... Tom Cole SAS Institute (where we are supposed to know better) Cary NC USA Earth
jans@tekecs.UUCP (10/26/86)
Alright, sports fans! The most commonly available language supporting: (value relop value relop value) is indeed (TA TA!) the Korn Shell! (evidenced by the following script) | Script started on Sun Oct 26 12:32:45 1986 | $ if ((2>1>0)); then echo true; else echo false; fi | true | $ if ((1>1>0)); then echo true; else echo false; fi | false | $ if ((1>1>1)); then echo true; else echo false; fi | false | $ if ((2>1>1)); then echo true; else echo false; fi | false | script done on Sun Oct 26 12:35:04 1986 The first person who correctly explains this behavior will have $2.56 donated in their name to the Steinman Charitable Beer Trust. (Just when you thought this silly subject had died out!) -- :::::: Artificial Intelligence Machines --- Smalltalk Project :::::: :::::: Jan Steinman Box 1000, MS 60-405 (w)503/685-2956 :::::: :::::: tektronix!tekecs!jans Wilsonville, OR 97070 (h)503/657-7703 ::::::