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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-21 05:37:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.airnews.net!cabal12.airnews.net!usenet From: "John R. Strohm" Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X Date: Sat, 21 Jun 2003 07:24:16 -0500 Organization: Airnews.net! at Internet America Message-ID: References: Abuse-Reports-To: abuse at airmail.net to report improper postings NNTP-Proxy-Relay: library1-aux.airnews.net NNTP-Posting-Time: Sat, 21 Jun 2003 07:35:40 -0500 (CDT) NNTP-Posting-Host: !ca,D1k-VQZ1^99 (Encoded at Airnews!) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: archiver1.google.com comp.lang.ada:39524 Date: 2003-06-21T07:24:16-05:00 List-Id: "Wesley Groleau" wrote in message news:v66cnYP9G6Q58G-jXTWJhQ@gbronline.com... > > > It would be the goofiest "+" operator around. If I write > > > > i := i + j + 1 > > > > what happens to j? > > IFF we allow "+" to be a procedure as well as a function, > then, as a procedure, it can not return a result [1]. > Therefore, neither "+" above could be the procedure. > > However, if we allow "+" to be a procedure, and allow > it to be called with the syntax > > i + 1; > > then we would have to decide whether to allow > > i + j + 1; > > and if so, how to define its meaning. This would seem to be an OUTSTANDING argument AGAINST the whole idea. > [1] Remember, in Ada, (unlike C), you cannot change > a function to a procedure by discarding its result.