comp.lang.ada
 help / color / mirror / Atom feed
From: "CheGueVerra" <chegueverra@hotmail.com>
Subject: More generics
Date: Wed, 8 Oct 2003 17:46:44 -0400
Date: 2003-10-08T17:46:44-04:00	[thread overview]
Message-ID: <e10hb.11660$oO4.748888@news20.bellglobal.com> (raw)

Now, while continuing playing with generics I was trying to do something
like this

generic
 type T_Cle is private;
 type T_element is private;
 with function "<" (Cle_1 : in T_Cle; Cle_2 : in T_Cle) return Boolean;
 MaxElement : Integer := 10;
package TestGen
...
end TestGen;

Now In the ada file when I try to do

package GenTest is new TestGen(TGen, TCool, "<" , 100);

I get this message that is really not clear for me
Name has no possible Interpretation as a callable entity, but when I take
out the overload of the operator "<" it works fine...  So I guess that I
need to define  ( where is still not clear) the overloaded function "<" for
that error to go away ??? Or am I way far from the track ??

Learning, reading and still trying

CheGueVerra





                 reply	other threads:[~2003-10-08 21:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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