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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,369ed27a1a2dd2cb X-Google-Attributes: gid103376,public From: stt@houdini.camb.inmet.com (Tucker Taft) Subject: Re: QUIZ: To be or not to be (able to post) Date: 1997/10/02 Message-ID: #1/1 X-Deja-AN: 277402547 Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.camb.inmet.com References: <610a7h$a7n@news3.his.com> Organization: Intermetrics, Inc. Newsgroups: comp.lang.ada Date: 1997-10-02T00:00:00+00:00 List-Id: Joel VanLaven (jvl@ocsystems.com) wrote: : ... : : function Sin (F : Float) return Float; : : function Sin (X : Float'Base) return Float'Base : : renames Ada.Numerics.Elementary_Functions.Sin; : ... : Our compiler (PowerAda) says: : 6: function Sin (X : Float'Base) return Float'Base : ----------------------------------------------- : >>> SEMANTIC: Formal part of renaming-as-body is inconsistent with its : specification <8.5.4:5> : the LRM reference says (just the good part): : "The profile of a renaming-as-body shall ..., and shall conform fully to that : of the declaration it completes" : Fully conformant includes subtype conformant and the two profiles are not : subtype conformant. Actually, they *are* subtype conformant, but they are not *fully* conformant because of the formal parameter name change from F to X. I bet your compiler knew that already ;-). : -- Joel VanLaven -- -Tucker Taft stt@inmet.com http://www.inmet.com/~stt/ Intermetrics, Inc. Burlington, MA USA