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,8fd45d32d7c94df3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!8g2000prt.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: User Defined Storage Pool : did you ever experiment with it ? Date: Mon, 7 Feb 2011 14:59:58 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 81.62.25.110 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1297119599 24420 127.0.0.1 (7 Feb 2011 22:59:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 7 Feb 2011 22:59:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 8g2000prt.googlegroups.com; posting-host=81.62.25.110; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:16955 Date: 2011-02-07T14:59:58-08:00 List-Id: On Feb 7, 11:18=A0pm, "Randy Brukardt" wrote: > Combined with the indexing aspect, you'll be able to write something like= : > > =A0 =A0 =A0Foo(1).Bar :=3D 10; > > For a vector container Foo whose elements are a record type with a compon= ent > Bar. And even: > > =A0 =A0 Text_Map ("Ada").Count :=3D 1; > > For an indefinite map. Great! But then - will this be implementable in a way that is simple enough to allow reasonable inlining [*]? Remember that this feature will be inevitably compared to C++. If Ada gets the performance part right, this feature will sell very well. [*] For the sake of comparison, the passive iterator idiom that is currently used with containers is not inline-friendly. -- Maciej Sobczak * http://www.inspirel.com