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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fded8d14c74b14e5 X-Google-Attributes: gid103376,public From: "Nick Roberts" Subject: Re: Looking for Ada Technique Name and References Date: 2000/02/23 Message-ID: <38b32dca@eeyore.callnetuk.com>#1/1 X-Deja-AN: 588631402 References: <88kegp$iso$1@coward.ks.cc.utah.edu> <88kh6q$j4j$1@coward.ks.cc.utah.edu> <88s90i$8mi$1@ns3.arlut.utexas.edu> <88svc0$nkj$1@coward.ks.cc.utah.edu> X-Original-NNTP-Posting-Host: da132d148.dialup.callnetuk.com X-Trace: 23 Feb 2000 00:46:02 GMT, da132d148.dialup.callnetuk.com X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: comp.lang.ada X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Date: 2000-02-23T00:00:00+00:00 List-Id: "John Halleck" wrote in message news:88svc0$nkj$1@coward.ks.cc.utah.edu... > ... > This trick is *** NOT *** supported by most languages. I don't think I've ever encountered any language that allows a function composition itself to be specially defined. The nearest thing is when compilers do optimisations. A classic case is where a 'mod' is done between two operands just after (or before) a divide is done between the same operands. Many compilers will optimise this into a single machine instruction (which computes both the quotient and the modulus in one go). -- Nick Roberts http://www.adapower.com/lab/adaos