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: a07f3367d7,57f8540942f8e060 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!195.238.0.231.MISMATCH!news.skynet.be!aioe.org!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Initialization and Finalization of limited object "returned" by a function Date: Fri, 12 Feb 2010 20:00:55 -0600 Organization: Jacob Sparre Andersen Message-ID: References: <41b794ec-26b0-485e-a959-580a5b877a3b@f15g2000yqe.googlegroups.com> <8e09c20d-172e-42a2-b2ff-994863893523@h12g2000yql.googlegroups.com> <9c2b5c56-7abf-4523-844d-b48447587402@w27g2000pre.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1266026456 26583 69.95.181.76 (13 Feb 2010 02:00:56 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 13 Feb 2010 02:00:56 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5843 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Xref: g2news1.google.com comp.lang.ada:9188 Date: 2010-02-12T20:00:55-06:00 List-Id: "Robert A Duff" wrote in message news:wccocjue0e7.fsf@shell01.TheWorld.com... > Adam Beneschan writes: > >> I also remember some of the attempted rationalizations at the time; in >> particular, why did Ada use parentheses for both subprogram calls and >> array indexing, when other popular languages (Pascal and C) used >> square brackets for indexing. Someone came up with an argument that >> it was actually a good thing to use the same characters for both, >> because then if your program uses Arr(Index), where Arr is an array, >> you could redesign your program to make "Arr" a function and the >> change would be transparent. That seemed like a stretch at the time. > > Well, this one makes a little more sense than the aggregate thing. > But it doesn't work if you say "Arr(Index) := ..."! Unless Tucker's latest project works out. Stay tuned... Randy.