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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.150.67 with SMTP id y64mr12060138iod.107.1517053121653; Sat, 27 Jan 2018 03:38:41 -0800 (PST) X-Received: by 10.157.24.117 with SMTP id t50mr1174409ott.9.1517053121544; Sat, 27 Jan 2018 03:38:41 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!w142no116894ita.0!news-out.google.com!b73ni397ita.0!nntp.google.com!g80no115062itg.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 27 Jan 2018 03:38:41 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a01:e35:2ecd:88c0:39d4:7156:83b1:cb42; posting-account=O1Kt4QoAAABKYAjrg-cGai_vZLnN2LEw NNTP-Posting-Host: 2a01:e35:2ecd:88c0:39d4:7156:83b1:cb42 References: <61ba3677-0041-4dba-af9b-a5df48f3ce8a@googlegroups.com> <6427a793-91a4-4feb-b067-ed89b4c04421@googlegroups.com> <3af9cfc4-d434-4d60-a4ed-17a16f75717f@googlegroups.com> <36f3a79b-0db5-4199-9a7a-cbf64058cd18@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8a75d56c-29d0-464a-9f2a-9126d8f17ba1@googlegroups.com> Subject: Re: Iterable container as generic parameter From: Lionel Draghi Injection-Date: Sat, 27 Jan 2018 11:38:41 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 3143300131 X-Received-Bytes: 3011 Xref: reader02.eternal-september.org comp.lang.ada:50179 Date: 2018-01-27T03:38:41-08:00 List-Id: Le samedi 27 janvier 2018 08:03:49 UTC+1, Randy Brukardt a =C3=A9crit=C2=A0= : > ... > >By the way, I have another question. There is no way to provide a defaul= t > > instantiation to a formal package parameter? >=20 > Not in Ada 2012 or before. There is an open issue (it is one of those tha= t=20 > Emmanuel referenced in his message) to allow that. It hasn't progressed a= ny=20 > significant amount at this time. Very interesting indeed, to have lawyers and implementers view on a languag= e change proposal. >From my user point of view, the "or use" proposal looks very good. It's simple (to write!), easy to read (much more in my opinion than "with D= efault_Type =3D> ..." syntax). I would just add that, when reading the comment on the ":=3D" proposal, tha= t ":=3D" may seems to imply copying a type, I realized that I was already r= eading : > procedure New_Line (Spacing : Positive_Count :=3D 1); as "give your own spacing, _or use_ 1 if none given", and not as=20 "_copy_ 1 in Spacing if none given".=20 So, IMHO, I wouldn't give a high weight to this argument. =20 And, actually,=20 > procedure New_Line (Spacing : Positive_Count or use 1); looks good too :-) =20 =20 > (Aside: There are a LOT of ideas submitted for Ada 2020. Many good ideas = are=20 > likely to be left out simply because of lack of time and/or too much=20 > change.)