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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Community Input for the Maintenance and Revision of the Ada Programming Language Date: Thu, 10 Aug 2017 19:25:28 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <79e06550-67d7-45b3-88f8-b7b3980ecb20@googlegroups.com> <9d4bc8aa-cc44-4c30-8385-af0d29d49b36@googlegroups.com> <1395655516.524005222.638450.laguest-archeia.com@nntp.aioe.org> <1502382504.2184.6.camel@obry.net> <1040032843.524077622.950797.laguest-archeia.com@nntp.aioe.org> NNTP-Posting-Host: MajGvm9MbNtGBKE7r8NgYA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:47685 Date: 2017-08-10T19:25:28+02:00 List-Id: On 2017-08-10 19:08, Luke A. Guest wrote: > Dmitry A. Kazakov wrote: >> On 2017-08-10 18:28, Pascal Obry wrote: >>> Le mercredi 09 août 2017 à 22:08 +0100, Luke A.Guest a écrit : >>>> 4) multiple return types: >>>> >>>> function Blah return Integer, Float; >>> >>> Generalized tuples. I would like this too. >> >> Should not they be named? Then it is an anonymous record type: >> >> function Blah return >> record Count : Integer; Value : Float end record; >> >> How do I pass tuple elements down? Say, I have >> >> procedure Foo (X : Float; Y : String; Z : Integer); >> >> Now I want to call Foo: >> >> Foo (X => Blah.Value, Z => Same_Blah.Count, Y => "fun"); >> >> ? >> > > Well you could implement with a bunch of generics taking different number > of types but a language level construct would be better. I doubt any number of generics would help. The question is syntax of passing tuple result down. If resolved it could help in other important cases like container element in-place update when you want to pass the container's element down in in-out mode. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de