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 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-21 11:11:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!cyclone.bc.net!snoopy.risq.qc.ca!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Message-ID: <3ECBBDAC.5010109@cogeco.ca> From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: The old "Object.Method" syntax debate References: <254c16a.0305210726.485125de@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 21 May 2003 13:55:56 -0400 NNTP-Posting-Host: 198.96.223.163 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1053539756 198.96.223.163 (Wed, 21 May 2003 13:55:56 EDT) NNTP-Posting-Date: Wed, 21 May 2003 13:55:56 EDT Organization: Bell Sympatico Xref: archiver1.google.com comp.lang.ada:37605 Date: 2003-05-21T13:55:56-04:00 List-Id: What I find interesting about this, was the reference in C++ circles to allow the "Ada way" of reference, to work around the limitations that object.method() has. We seem to have two groups digging tunnels underground to meet in the middle? Probably a google of this news group could find the pointer that posted here a few months ago. Warren. David C. Hoos wrote: > This was brought up in a forum regarding enhancements for Ada0X, > at the SIG-Ada meeting last December, and the consensus was it > should be done, so it probably will. > > In defense of the charge that the objection is "vacuous," I would point > out that that notation prevents the need to fully qualify the subprogram > name (in the absence of use clauses) when invoking the subprogram > for an object which is in scope. > > Having worked in the .NET environment for quite a while, it's really > nice to be able to type an object name, then the dot, and immediately > see a little pop-up-window showing all of the available operations, > and being able to select from the list instead of typing the full > subprogram name. > > My current work is C#, and I haven't yet had the time to try A#, but > I hope to get around to it, soon. > > > "Marc A. Criley" wrote in message > news:254c16a.0305210726.485125de@posting.google.com... > >>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))." ... -- Warren W. Gay VE3WWG http://home.cogeco.ca/~ve3wwg