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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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-28 01:21:46 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsswitch.lcs.mit.edu!newsfeed.mathworks.com.MISMATCH!newsfeed!fu-berlin.de!uni-berlin.de!dialin-145-254-040-169.arcor-ip.NET!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: The old "Object.Method" syntax debate Date: Wed, 28 May 2003 10:24:05 +0200 Organization: At home Message-ID: References: <254c16a.0305210726.485125de@posting.google.com> <3eccdf77$1@epflnews.epfl.ch> <3ecdd296$1@epflnews.epfl.ch> <3ED056CB.8000200@attbi.com> <3ed33506.7272397@news.btclick.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: dialin-145-254-040-169.arcor-ip.net (145.254.40.169) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: fu-berlin.de 1054110105 5042101 145.254.40.169 (16 [77047]) User-Agent: KNode/0.7.1 Xref: archiver1.google.com comp.lang.ada:37880 Date: 2003-05-28T10:24:05+02:00 List-Id: John McCabe wrote: > On Sun, 25 May 2003 11:13:08 +0200, "Dmitry A. Kazakov" > wrote: > >>To have X'Image instead of T'Image (X)? That is too good to become a >>reality. (:-)) > > You mean like the GNAT X'Img attribute? Overridable attributes would make any explicit type specification superfluous in presence of an object. [Even in Ada 83 T'Image (X) looked strange. Any possible ambiguity could be easily solved with a qualified expression: T'(X)'Image.] However, overriding attributes raises an interestring question of making everything that could appear on the left side of an attribute a first-class object. To bring it to extreme what about: I := (array (Integer range 1..Size) of Something)'Length; -- (:-)) -- Regards, Dmitry A. Kazakov www.dmitry-kazakov.de