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,70414f56d810c10c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.21.67 with SMTP id t3mr1233048pbe.26.1316364379969; Sun, 18 Sep 2011 09:46:19 -0700 (PDT) Path: m9ni9032pbd.0!nntp.google.com!news1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: discriminant questions Date: Sun, 18 Sep 2011 12:46:19 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <9f37b726-d80b-4d24-bf3f-28a14255f7fd@s20g2000yql.googlegroups.com> <86015926-d652-4265-aedd-413312d399f9@dq7g2000vbb.googlegroups.com> <0d272f62-67d0-4905-972c-8a7e912c5531@en1g2000vbb.googlegroups.com> <148cxoyabima2.16mz6xwdph2hj.dlg@40tude.net> <01a1374f-59ab-40be-9e39-0640cb2a513d@n35g2000yqf.googlegroups.com> <1fp2o673mu9az$.d9loz1zbcl0d.dlg@40tude.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 X-Trace: pcls6.std.com 1316364379 16675 192.74.137.71 (18 Sep 2011 16:46:19 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 18 Sep 2011 16:46:19 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:HA/tMoO+U9wtUxb72Qe1ipkbM2o= Xref: news1.google.com comp.lang.ada:18016 Content-Type: text/plain; charset=us-ascii Date: 2011-09-18T12:46:19-04:00 List-Id: "Dmitry A. Kazakov" writes: > I am not sure if Ada 2012 offers new features interesting for designers of > container libraries. OK, maybe one, functions have finally got [in] out > parameters. There's a whole bunch of stuff. Look at these AI's: AI05-0139-2.TXT : !subject Syntactic sugar for accessors, containers, and iterators AI05-0142-4.TXT : !subject Explicitly aliased parameters AI05-0143-1.TXT : !subject In Out parameters for functions AI05-0162-1.TXT : !subject Allow incomplete types to be completed by partial views AI05-0212-1.TXT : !subject Accessors and Iterators for Ada.Containers The stuff you need to know for writing containers is pretty arcane. But the use of containers becomes much simpler. For example, you can say things like: A(X).Y := A(X).Y + 1; whether A is an array or a Vector. - Bob