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=-0.9 required=5.0 tests=BAYES_00,FROM_NUMERIC_TLD autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ace3fca092a457cd X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!newsfeed.stanford.edu!news.kjsl.com!news-peer-lilac.gradwell.net!not-for-mail From: "Stuart" Newsgroups: comp.lang.ada References: Subject: Re: Unary operator after binary operator: legal or not? => Compiler Error Date: Fri, 3 Aug 2007 08:48:29 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Message-ID: <46b2da48_1@glkas0286.greenlnk.net> X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net NNTP-Posting-Host: 20.133.0.1 X-Trace: 1186127318 news.gradwell.net 642 dnews/20.133.0.1:21553 X-Complaints-To: news-abuse@gradwell.net Xref: g2news2.google.com comp.lang.ada:1348 Date: 2007-08-03T08:48:29+01:00 List-Id: "Charles Lindsey" wrote in message news:JM5yyp.Azp@clerew.man.ac.uk... > Interestingly, that example works in ALGOL 68, which generally speaking is > as pernickety a language as you are likely to get. > > --x works too. Essentially, all the monadic operators have a higher > preference than the dyadic ones. It can also work in Ada - just not as an arithmetic operation ;-) MyLongNameResult := MyLongNameInput--2 +MyLongNameAddend; I have never really been enamoured with the Ada choice of comment marker, especially when there were many other unused/lesser used characters available. -- Stuart