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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!news.tiscali.fr!proxad.net!feeder1-2.proxad.net!cleanfeed2-a.proxad.net!nnrp17-2.free.fr!not-for-mail Return-Path: X-Virus-Scanned: amavisd-new at ada-france.org Date: Tue, 31 Jul 2007 10:38:43 +0200 From: "Grein, Christoph (Fa. ESG)" Subject: AW: Unary operator after binary operator: legal or not? => CompilerError In-reply-to: To: anon , comp.lang.ada@ada-france.org MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 Content-Type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-class: urn:content-classes:message Importance: normal Priority: normal Thread-topic: Unary operator after binary operator: legal or not? => CompilerError Thread-index: AcfTTGb8upscirWURUqKKwpYWkVDegAACVQg X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 31 Jul 2007 08:38:42.0424 (UTC) FILETIME=[33424780:01C7D34E] X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.9rc1 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.ada Message-ID: X-Leafnode-NNTP-Posting-Host: 88.191.17.134 Organization: Guest of ProXad - France NNTP-Posting-Date: 31 Jul 2007 10:40:02 MEST NNTP-Posting-Host: 88.191.14.223 X-Trace: 1185871202 news-4.free.fr 29055 88.191.14.223:49058 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:1289 Date: 2007-07-31T10:40:02+02:00 > 1. > 2. function Xyz (Left, Right : in integer) return integer is > 3. > 4. begin -- Xyz > 5. if +Left <= +Right then > 6. return +Left * +Right; > | > >>> missing operand > > 7. end if; > 8. end Xyz; > > Forgot to add, in my modified math version, if you replace the "+Right" > with "+7" which is a simple_expression it still will give an error. And > because you could replace the "+7" with "-7", for negative numbers, > which is also a simple_expression you still get an error. This means you > have found a compiler error! > >This needs to be reported! Nonsense! The compiler is correct. See the syntax RM 4.4 (4-6). (This has been properly answered already by someone else.) A factor (6) is a primary, not a simple_expression (4). Eurocopter Deutschland GmbH Sitz der Gesellschaft/Registered Office: Donauwoerth Registergericht/Registration Court: Amtsgericht Augsburg HRB 16508 Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: Dr. Lutz Bertling Geschaeftsfuehrung/Board of Management: Dr. Wolfgang Schoder, Vorsitzender/CEO; Friedrich-Wilhelm Hormel; Ralf Barnscheidt CONFIDENTIALITY NOTICE This communication and the information it contains is intended for the addressee(s) named above and for no other persons or organizations. It is confidential and may be legally privileged and protected by law. The unauthorized use, copying or disclosure of this communication or any part of it is prohibited and may be unlawful. If you have received this communication in error, kindly notify us by return e-mail and discard and/or delete the communication. Thank you very much. It is possible for e-mails to be intercepted or affected by viruses. Whilst we maintain virus checks on our e-mails, we accept no liability for viruses or other material which might be introduced with this message.