From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_00,MISSING_DATE, MISSING_MID,MISSING_SUBJECT autolearn=no autolearn_force=no version=3.4.4 From: utzoo!decvax!harpo!floyd!cmcl2!philabs!sdcsvax!sdccsu3!sdcrdcf!lwall Newsgroups: net.lang.ada Title: Little known facts about Ada* quiz #1 Article-I.D.: sdcrdcf.182 Posted: Mon Apr 18 15:23:26 1983 Received: Mon Apr 25 07:57:49 1983 List-Id: Message-ID: <20200615230048.Sch9iu2-X_5sumKZY0WsNKS-DDrFDa15QxaWCPBiuP8@z> Reply-To: lwall@sdcrdcf.uucp Organization: System Development Corporation--a Burroughs Company pragma FLAME(ON); -- Why isn't there more activity in this newsgroup? pragma FLAME(OFF); Now that we have that out of the way, here's the quiz: Question #1: What is the value of 0**0? (This is an easy one!) Question #2: What is the value of abs(-1) * (-1) ? Question #3: Barring the use of constructs that allow for an infinite number of possibilities (redundant parens, use of attributes such as 'SUCC and 'PRED, concatenation of "", etc.), how many ways are there to write the string literal having the value "ab"? For example, "ab", ('a','b'), "&"("a",'b'), ... Please respond via mail and we will summarize to the net. Some of these questions have interesting philosophical implications. "&"("Mark Biggar","Larry Wall") ...!decvax!trw-unix!sdcrdcf!{markb,lwall} P.S. Is a language that provides only one way to express a given idea intrinsically superior to a language that provides more than one way? * Ada is a registered trademark of USDODAJPO.