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,9d303864ae4c70ad X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-08 13:32:51 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Reprise: 'in out' parameters for functions Date: Thu, 8 Apr 2004 15:32:19 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <107bdn6kk6rib2f@corp.supernews.com> References: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:6866 Date: 2004-04-08T15:32:19-05:00 List-Id: "Georg Bauhaus" wrote in message news:c546fd$lkb$3@a1-hrz.uni-duisburg.de... > Stephen Leake wrote: > > : Token : in out Token_List.List_Iterator) > Is > Token : access Token_List.List_Iterator) > not an option? It's rarely an option, because it (a) forces a particular declaration ('aliased') on users that have no need to know and (b) makes a messy call with the need to use '[Unchecked_]Access in every call. I prefer to simply make the List_Iterator a type that internally contains indirection. (That usually requires it to be a controlled type). Then the actual data can be manipulated. But whether that solution is worth the extra work depends on how much the interface is going to be used. (It isn't worth the effort for a rarely used interface.) Randy.