comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitriy Anisimkov" <ts@quadrat.omsk.su>
Subject: Instantiation before body seen
Date: 1998/01/09
Date: 1998-01-09T00:00:00+00:00	[thread overview]
Message-ID: <01bd1c95$ddeacf60$LocalHost@----> (raw)


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 ?






             reply	other threads:[~1998-01-09  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-09  0:00 Dmitriy Anisimkov [this message]
1998-01-08  0:00 ` Instantiation before body seen Matthew Heaney
1998-01-10  0:00   ` Dmitriy Anisimkov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox