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,b6e97963d32ee242,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-21 08:26:35 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: mcq95@earthlink.net (Marc A. Criley) Newsgroups: comp.lang.ada Subject: The old "Object.Method" syntax debate Date: 21 May 2003 08:26:35 -0700 Organization: http://groups.google.com/ Message-ID: <254c16a.0305210726.485125de@posting.google.com> NNTP-Posting-Host: 12.158.183.115 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1053530795 16933 127.0.0.1 (21 May 2003 15:26:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 21 May 2003 15:26:35 GMT Xref: archiver1.google.com comp.lang.ada:37586 Date: 2003-05-21T15:26:35+00:00 List-Id: Yeah, I'm bringing this up. Kill the thread if your eyes just rolled up into your head %-) The reason I'm mentioning this is because of something I just read in Martin Carlisle, Sward, and Humphries' paper "Weaving Ada 95 into the .Net Environment" (http://www.adapower.net/a_sharp/asharp.pdf). While this has been available online for awhile I only now read it in my recent issue of Ada Letters. What caught my attention was an almost peripheral mention of modifying GNAT to recognize the Object.Method syntax: "Ada 95 has often been criticized for making the syntax of dispatching method calls the same as the imperative procedure calls. [...] We have modified the compiler to allow the same object.method syntax [...] We have also performed this modification to the Windows 3.15 version of GNAT. It required only 127 non-blank, non-comment lines of Ada code. We expect this syntax will make it easier for students to understand object-oriented programming. Since we also support the standard Ada 95 syntax, we still have the nicer Ada syntax for operators (x+y instead of x."+"(y))." I've pretty much always thought of this as a non-issue not worth all the bandwidth that's been expended on it, since it's a matter of syntactic sugar. But reading that Carlisle's team changed only 127 SLOC in GNAT 3.15 to support it, I'm thinking that if it's that cheap to change in a compiler (and I know there's all the regression testing and LRM updates and so on that would have to accompany such a move), then maybe it's worth it to allow the alternate syntax and remove one of the admittedly vacuous objections to Ada raised by the language's critics. Marc A. Criley