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-22 08:39:45 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: The old "Object.Method" syntax debate Date: Thu, 22 May 2003 10:39:40 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <254c16a.0305210726.485125de@posting.google.com> <3eccdf77$1@epflnews.epfl.ch> X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:37646 Date: 2003-05-22T10:39:40-05:00 List-Id: "Rodrigo Garcia" wrote in message news:3eccdf77$1@epflnews.epfl.ch... > > 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. > > This feature has been around long time before .NET appeared. Microsoft > people call it "IntelliSense" and many others just call it context sensitive > completion. I think it is a very nice feature, but it is just tool support. > I do not think it justifies a new syntax for Ada objects. I dod not mean to suggest that the availability of "IntelliSense" justified the new syntax. The new syntax would eliminate some code redundancy, as the AI points out. > > I would be happy if an Ada editor had something similar with package names. > Once you type the name of a package, you could have a pop-up showing all the > available operations of the package. Does anybody know of something like > that? Perhaps GPS? emacs with ada-mode approaces this. If you right-click on the name of a package (e.g. in the with statement), you can go to the package declaration. If there were a pop-up-window as you suggest, it would be even nicer if it did not limit itself to operations, but would list all package entities legal in the immediate editing context. > > I am one of those who suspect that the new syntax would add more confusion > than advantages to the language. As I pointed out in an earlier post, this syntax exists in Ada already for protected types. See, for example line 54 of phil.adb of the dining philosophers demonstration program that comes with GNAT: Room.Sticks (First_Grab).Pick_Up; Room.Sticks (First_Grab) is the object; Pick_Up is the operation. > > Rodrigo > > > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada >