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,ad988eb0a9545c86 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-13 13:10:01 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!newsfeed.icl.net!dispose.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!zap!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Problem trying to implement generics. Date: 13 Apr 2001 07:34:46 +0100 Organization: CodeFella Message-ID: References: <9b1oe1$i4m$1@taliesin.netcom.net.uk> <3AD5B43F.6A5B@ozonline.com.au> NNTP-Posting-Host: localhost X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 987192468 nnrp-13:17848 NO-IDENT pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net NNTP-Posting-Date: 13 Apr 2001 06:34:46 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: supernews.google.com comp.lang.ada:6872 Date: 2001-04-13T06:34:46+00:00 List-Id: Andy writes: > generic > type data_type is private; > type Sort_by is private; > with function "<" (Left, Right: in Sort_By) return Boolean; I would write with function "<" (Left, Right: in Sort_By) return Boolean is <>; so that if a "<" is visible at the instantiation point it can be used without explicitly saying so. On the other hand, when doing the instantiation I probably would specify the "<" explicitly! -S