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 X-Google-Thread: 103376,b6e97963d32ee242 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-22 02:41:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!skynet.be!skynet.be!freenix!deine.net!ciril.fr!cines.fr!univ-lyon1.fr!news.ens-lyon.fr!news.imag.fr!not-for-mail From: Xavier Nicollin Newsgroups: comp.lang.ada Subject: Re: The old "Object.Method" syntax debate Date: Thu, 22 May 2003 11:41:10 +0200 Organization: Institut IMAG, Grenoble Message-ID: <3ECC9B36.514A9B35@imag.fr> References: <254c16a.0305210726.485125de@posting.google.com> <3ECBA778.4070909@crs4.it> NNTP-Posting-Host: moucherotte.imag.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: trompette.imag.fr 1053596470 5656 129.88.43.82 (22 May 2003 09:41:10 GMT) X-Complaints-To: abuse@imag.fr NNTP-Posting-Date: Thu, 22 May 2003 09:41:10 +0000 (UTC) X-Mailer: Mozilla 4.79 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:37632 Date: 2003-05-22T11:41:10+02:00 List-Id: Robert A Duff wrote: > > Jacob Sparre Andersen writes: > > > Will the change mean that currently legal programs will have to be > > rewritten? > > No. The ARG is very concerned about compatibility, and would never make > a change that would cause everybody to have to rewrite their Ada > programs. What about something like the following: package A_Package is type A_Type is tagged record A_Name : Integer; end record; function A_Name (Obj : A_Type) return Integer; end A_Package; with A_Package; use A_Package; ... Obj : A_Type; N : Integer := Obj.A_Name; ^^^^^^^^^^ This is currently perfectly legal, but I guess it would be refused by any compiler with the change in effect. Or would the syntax for the function call be Obj.A_Name () ?!!? -- | Xavier NICOLLIN (mailto:Xavier.Nicollin@imag.fr) -- INPG (ENSIMAG) | VERIMAG -- Centre Equation -- 2, ave. de Vignate -- F-38610 Gi�res