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,a78361b1fb8b4be9 X-Google-Attributes: gid103376,public From: "Dmitriy Anisimkov" Subject: Instantiation before body seen Date: 1998/01/09 Message-ID: <01bd1c95$ddeacf60$LocalHost@---->#1/1 X-Deja-AN: 314146505 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=KOI8-R Organization: Complex Computer Systems Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-01-09T00:00:00+00:00 List-Id: Compilation of my package by GNAT-3-10 -------------------------------- package AnyPackage .................. private generic with function Compare(C1,C2 : Comp) return Boolean; function Compare(R1,R2 : TRational) return Boolean; function "<" is new Compare("<"); function ">" is new Compare(">"); function "<=" is new Compare("<="); function ">=" is new Compare(">="); function "=" is new Compare("="); .................. end AnyPackage ---------------------- causes warning 'cannot instantiate "AnyMyFunction" before body seen' I have defined body later. Is there GNAT limitation or language limitation ?