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,1116ece181be1aea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-12 01:22:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!area.cu.mi.it!newsfeeder.edisontel.com!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: Is the Writing on the Wall for Ada? Date: Fri, 12 Sep 2003 10:30:20 +0200 Message-ID: References: <3F5F7FDC.30500@attbi.com> <3F6079A9.6080108@attbi.com> <5115eb96.0309112000.339b8258@posting.google.com> NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 1063354962 23653498 212.79.194.111 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:42403 Date: 2003-09-12T10:30:20+02:00 List-Id: On 11 Sep 2003 21:00:18 -0700, amir@iae.nsk.su (Amir Yantimirov) wrote: >I think it is a good example that interfaces should be purely functional: > >interface Cartesian is set X,Y: property Float; end set; >interface Polar is set R, Theta: property Float; end set; Note that Ada does not distinguish values and functions with no arguments. Therefore, whether a cartesian point has a field X or a "method" X is absolutely no matter. With true ADT you will never know whether some field really exists or is just some proxy "methods". >Alas, without object.method notation this impossible. Why? X (Cartesian_Object) is as good as Cartesian_Object.X This is just syntax suggar. One could allow a renaming clause to provide dot-notation. --- Regards, Dmitry Kazakov www.dmitry-kazakov.de