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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c944ce2ba25eeb02 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-20 00:01:04 PST Path: supernews.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!news.huji.ac.il!not-for-mail From: "Ehud Lamm" Newsgroups: comp.lang.ada Subject: Re: Generic Packages Date: Fri, 20 Apr 2001 09:50:48 +0300 Organization: The Hebrew University of Jerusalem Message-ID: <9bomjc$f95$1@news.huji.ac.il> References: <9bnh7f$5di$1@news.inter.net.il> NNTP-Posting-Host: di2-25.dialin.huji.ac.il X-Trace: news.huji.ac.il 987749805 15653 132.64.12.25 (20 Apr 2001 06:56:45 GMT) X-Complaints-To: abuse@news.huji.ac.il NNTP-Posting-Date: Fri, 20 Apr 2001 06:56:45 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Xref: supernews.google.com comp.lang.ada:7026 Date: 2001-04-20T09:50:48+03:00 List-Id: Robert A Duff wrote in message news:wccwv8g7da3.fsf@world.std.com... > "Eyal Ben-gal" writes: > > > but when i'm trying to make it generic I fail since I'm calling the abstruct > > data type functions and the compiler ofcourse can't know how to connect that > > to the type I'm using for the SetFirst, SetNext functions. > > > > How can I do that ? > > You can either pass in all the operations, or you can use a generic > formal derived type, where the ancestor type has the operations. > Eyal, we'll use the seond technique Robert Duff mentions after we learn about inheritance in Ada. Ehud Lamm