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=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,31a8e118c303e8b3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-24 09:31:43 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: ametayer98@hotmail.com (annabelle) Newsgroups: comp.lang.ada Subject: Re: beginner ada generic fonction Date: 24 Mar 2002 09:31:43 -0800 Organization: http://groups.google.com/ Message-ID: <8235efb6.0203240931.182d6f19@posting.google.com> References: <8235efb6.0203221737.44abefff@posting.google.com> <3ESm8.101615$q2.10433@sccrnsc01> <8235efb6.0203231910.65856099@posting.google.com> NNTP-Posting-Host: 154.5.29.60 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1016991103 1142 127.0.0.1 (24 Mar 2002 17:31:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 24 Mar 2002 17:31:43 GMT Xref: archiver1.google.com comp.lang.ada:21617 Date: 2002-03-24T17:31:43+00:00 List-Id: Thank you for your efforts ! Your explanation was helpful... The thing is, I was given the following spec and I cant change it. I've GOT to use it as it is. I can make the "LaCle" function to work but now I have trouble with the "<" function... I would love to have an example of how I call this "<" in my ADB file and how do I define this function in my ADA project... I know I am a pain in the neck !!! I have great difficulty with the concept but I know I CAN understand eventually !!! GENERIC TYPE Type_Element IS Private; -- Type de l'enregistrement a gerer TYPE Type_Cle IS Private; -- Type de la cle de l'enregistrement WITH Function LaCle (mon_item : Type_Element) Return Type_Cle; -- Fonction qui retourne la valeur de la cle WITH Function "<" (Gauche,Droite : Type_Cle) Return Boolean; -- Importation de l'operateur < pour comparer des cles I AM SO MISERABLE !!! Annabelle M�tayer