comp.lang.ada
 help / color / mirror / Atom feed
* Instantiation before body seen
@ 1998-01-09  0:00 Dmitriy Anisimkov
  1998-01-08  0:00 ` Matthew Heaney
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitriy Anisimkov @ 1998-01-09  0:00 UTC (permalink / 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 ?






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-01-10  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-09  0:00 Instantiation before body seen Dmitriy Anisimkov
1998-01-08  0:00 ` Matthew Heaney
1998-01-10  0:00   ` Dmitriy Anisimkov

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