Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!husc6!linus!philabs!spies!argus!gsarff From: gsarff@argus.UUCP (gary sarff) Newsgroups: comp.lang.c Subject: Re: The D Programming Language Summary: pick (n) operators Message-ID: <104@argus.UUCP> Date: 19 Feb 88 19:09:29 GMT References: <11702@brl-adm.ARPA> <558@naucse.UUCP> <2523@haddock.ISC.COM> <2595@haddock.ISC.COM> Organization: W.O.V.S.E.D. Lines: 19 I am interested in "alternative" computer languages, and the ICON computer language has structures such as are being talked about here, for a general pick (nth) operator, the exact syntax of (x1,x2...xn) is used. can be an integer constant, an arithmetic expression, the name of a function in which case the function will be called with all the xi's as arguments. One can also use &'s instead of commas in which case expression failure of an xi causes failure of the rest of the expressions and evaluation halts there. All three types are handled uniformly, (ICON is written in C) they all pass through the same C code since something like 2(a,b,c) can be looked at as a function named "2" that returns its second argument, (but all of them get evaluated anyway). -- Gary Sarff {uunet|ihnp4|philabs}!spies!argus!gsarff To program is human, to debug is something best left to the gods. "Spitbol?? You program in a language called Spitbol?" The reason computer chips are so small is that computers don't eat much.