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,a3736685ef876ab2 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!postnews.google.com!t8g2000prg.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: OO Style with Ada Containers Date: Wed, 14 Nov 2007 15:50:14 -0800 Organization: http://groups.google.com Message-ID: <1195084214.480299.13970@t8g2000prg.googlegroups.com> References: <1195082906.420079.195000@d55g2000hsg.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1195084218 15619 127.0.0.1 (14 Nov 2007 23:50:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 14 Nov 2007 23:50:18 +0000 (UTC) In-Reply-To: <1195082906.420079.195000@d55g2000hsg.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: t8g2000prg.googlegroups.com; posting-host=66.126.103.122; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news1.google.com comp.lang.ada:18396 Date: 2007-11-14T15:50:14-08:00 List-Id: On Nov 14, 3:28 pm, braver wrote: > I've implemented a small system with Ada Containers and am wondering > about how do folks manage to keep their mental faculties together with > it. Instead of OO's uniquitous Object.method(params), we end up with > something like: > > package Some_Things is new Ada.Containers.Things(...) > > package ST renames Some_Things; > > Something: ST.Type; > > while ST.Method(Someting,...) loop > -- AT is Another_Things instantiation > ...if AT.Method(Fun(Something), Another_Things.Method(...)) then ... > end if; ... > end loop; Ada 2005 does have Object.Method notation (as long as Object's type is tagged, and I think all the interesting ones in Ada.Containers.*** are). Did you try it? Is there something specific that you expected to work that didn't? If so, we can certain help you try to track down the problem. -- Adam