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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,b02f5fed4171d18c X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Attribute denoting a subprogram : no named parameter associations allowed Date: Wed, 28 Oct 2009 14:03:10 -0500 Organization: Jacob Sparre Andersen Message-ID: References: <26d15919-f609-4878-8960-61bc87913cca@p23g2000vbl.googlegroups.com> <7073f784-e47f-4eea-9738-8ecec7648798@r24g2000prf.googlegroups.com> <5bc23b42-3a87-463b-b7c8-ab1b426c5191@d10g2000yqh.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1256756591 17587 69.95.181.76 (28 Oct 2009 19:03:11 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Wed, 28 Oct 2009 19:03:11 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Xref: g2news2.google.com comp.lang.ada:8828 Date: 2009-10-28T14:03:10-05:00 List-Id: "Hibou57 (Yannick Duch�ne)" wrote in message news:5bc23b42-3a87-463b-b7c8-ab1b426c5191@d10g2000yqh.googlegroups.com... > I'm aware this question in the context of attributes has something > anecdotal, but this is just I like to use named association as soon as > there is at least two parameters in a call. So it happens a moment I > asked to my self � why isn't it possible with attributes � ? > > About the weight of this matter, this is anecdotal, that's true > (pedant is a lot said, think this is about named association, which > are useful). The short answer is that Ada 83 didn't allow it (even if they were technically functions) because the parameters had no names (as Adam noted, there is no profiles for those functions published in the Ada 83 standard). When it was proposed for Ada 95, I griped about the implementation cost (as noted in my original message). Some other implementers agreed with me. When the scope reduction was applied to the Ada 9x proposal (the original language was just too large for the time, no one would ever have implemented it), things that were just "nice to haves" were removed (even if they were technically sound). This was in that category, so out it went. Same thing happened to conditional expressions and many other useful ideas. The reasoning hasn't changed, so I don't think we'll be revisiting that any time soon. Randy.