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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,388fc53f584bd695 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!feeder.news-service.com!feeder.erje.net!news.mixmin.net!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Fixed point constants issue Date: Tue, 28 Sep 2010 10:28:43 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <1f0l0baynq1x7$.phl9cqpwcr37.dlg@40tude.net> <8f7b0nF6hfU1@mid.individual.net> NNTP-Posting-Host: 488551716e8420964424e8416f70bce4 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: 2d56b945c85ae28c31eb5677f3c5e26b X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=2d56b945c85ae28c31eb5677f3c5e26b X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: g2news1.google.com comp.lang.ada:14297 Date: 2010-09-28T10:28:43-07:00 List-Id: On 09/28/2010 01:16 AM, Markus Schöpflin wrote: > > To quote ARM83 4.6 again: "An implicit conversion of an operand of type > [...] universal_real to another real type, can only be applied if the > operand is either a numeric literal, a named number, or an attribute; > [...]" > > So an implicit conversion will never be applied to the result of > universal_integer * universal_real, as the operand of the conversion is > an expression. But an implicit conversion to ALTITUDE would be needed > for universal_integer * universal_real -> universal_real to be used. Having read the section, I see what you're saying now. I was unclear because of the use of "operand"; I thought it referred to an operand of "*", but it refers to the operand of the implicit type conversion. This does seem to indicate that function "*" (Left : Integer; Right : Altitude) return Altitude; is used in this case, and what I was taught is incorrect. It would be nice to hear from someone who implemented an Ada-83 compiler. We know you're out there. -- Jeff Carter "People called Romanes, they go the house?" Monty Python's Life of Brian 79