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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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!v65g2000hsc.googlegroups.com!not-for-mail From: braver Newsgroups: comp.lang.ada Subject: Re: OO Style with Ada Containers Date: Wed, 14 Nov 2007 15:59:12 -0800 Organization: http://groups.google.com Message-ID: <1195084752.840598.174460@v65g2000hsc.googlegroups.com> References: <1195082906.420079.195000@d55g2000hsg.googlegroups.com> <1195084214.480299.13970@t8g2000prg.googlegroups.com> NNTP-Posting-Host: 213.145.35.9 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1195084753 15507 127.0.0.1 (14 Nov 2007 23:59:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 14 Nov 2007 23:59:13 +0000 (UTC) In-Reply-To: <1195084214.480299.13970@t8g2000prg.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.24 (Macintosh; Intel Mac OS X; U; en),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: v65g2000hsc.googlegroups.com; posting-host=213.145.35.9; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news1.google.com comp.lang.ada:18398 Date: 2007-11-14T15:59:12-08:00 List-Id: On Nov 15, 2:50 am, Adam Beneschan wrote: > 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? Have to say, jumped right in with the Wiki Ada book examples which are Method(Object, params). The Rosetta Stone examples also are procedural-style. Can you pls show how you use Ordered_Map object- style? The sample problem I use is to count all words (space- separated tokens) in a text file, creating a hash of the form word => count. Also wonder what the current state of string tokenization is -- tried unconstrained arrays for resulting list of tokens from each line and couldn't do it as they need to be known size and appending to them doesn't work. Didn't want to reallocate with access type on each token and ended up with Ada.Containers.Vectors for splitting a String... Cheers, Alexy