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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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-23 10:37:30 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!usenet-fr.net!enst.fr!not-for-mail From: Lionel.DRAGHI@fr.thalesgroup.com Newsgroups: comp.lang.ada Subject: RE: The old "Object.Method" syntax debate Date: Fri, 23 May 2003 19:39:11 +0200 Organization: ENST, France Message-ID: NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: avanie.enst.fr 1053711449 55998 137.194.161.2 (23 May 2003 17:37:29 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 23 May 2003 17:37:29 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: X-Mailer: Internet Mail Service (5.5.2653.19) X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:37703 Date: 2003-05-23T19:39:11+02:00 | -----Message d'origine----- | De: Steve [mailto:nospam_steved94@attbi.com] ... | | If only we could add an alternate syntax for defining the | methods (functions | and procedures) associated with an object, such as: | | type obj is tagged | record | field : Integer; | function Fun1( in; value : in integer ) return Integer; | procedure Proc1( in out; value : in out integer ); | end record; | | Yeah, I've mentioned this before, and nobody seems to agree | with me, but I | still hate dealing with "freezing rules" to figure out where | dispatching | operations end. I agree with you, Steve, you're no more alone :-) Some construction to clearly bound object limits would be good for readability. The former suffer from an already raised point here, which is that the declared profile is not the used profile, and this is not so good for readability. Note also that this is not strictly related to the "Object.Method" debate, as one could consider using your declaration syntax with the current: Proc1 (Obj, Value, integer); while forbidding: Obj.Proc1 (Value, integer); ... | | This is one of the very few places I like C++ and Java syntax | better than Ada. I unfortunatly agree. Sticking to Ada 83 syntax as much as possible was a really good goal, but due to for example to freeze rules, i am not sure that a more different syntax would have been more difficult to implement within compiler. Lionel Draghi.