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-Thread: 103376,41e60d168b455460 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!newsfeed.stueberl.de!zen.net.uk!dedekind.zen.co.uk!news-peer-lilac.gradwell.net!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada References: <874q9uuepj.fsf@tiscali.be> <1124120859.768505.108320@g49g2000cwa.googlegroups.com> Subject: Re: Hash table Date: Tue, 16 Aug 2005 08:33:22 +0100 Organization: BAE SYSTEMS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Message-ID: <430194ef$1_1@glkas0286.greenlnk.net> X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net NNTP-Posting-Date: 16 Aug 2005 07:34:29 GMT NNTP-Posting-Host: 20.133.0.1 X-Trace: 1124177669 news.gradwell.net 38040 dnews/20.133.0.1 X-Complaints-To: news-abuse@gradwell.net Xref: g2news1.google.com comp.lang.ada:4127 Date: 2005-08-16T07:34:29+00:00 List-Id: Matthew Heaney wrote: > Martin Dowie wrote: >>> Matt and I don't agree on exactly what to use if you want to use >>> something that will be like the Ada200Y API - he like generics as >>> you can use them in an Ada200Y fashion, I think that if you are >>> using Ada95 an Ada95 access type fashion is good enough (is this >>> accurate Matt?). > > No, the named access type approach is *not* good enough, because it's > impossible to use a locally-declared subprogram (the only thing that > makes any sense) as the iterator parameter. Well, I have written some programs that do this using package level and while it isn't as nice as Ada200Y will be, it does work and it has the benefit of not needing to be changed when I can move to an Ada200Y compiler. That's a bigger hurdle for me than using the generic solution, which would have to change. Cheers -- Martin