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-Thread: 103376,782af4edeb84c4b7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!irazu.switch.ch!news-zh.switch.ch!switch.ch!cernne03.cern.ch!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: basic basic ada question Date: Fri, 20 Oct 2006 14:38:21 +0200 Organization: CERN News Message-ID: References: <1161268231.345231.242170@m73g2000cwd.googlegroups.com> <4537bc65_1@newsfeed.slurp.net> <5567b72ia0c9$.1b6yl0tpfscj5$.dlg@40tude.net> NNTP-Posting-Host: abpc10883.cern.ch Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: cernne03.cern.ch 1161347901 24951 137.138.37.241 (20 Oct 2006 12:38:21 GMT) X-Complaints-To: news@@cern.ch NNTP-Posting-Date: Fri, 20 Oct 2006 12:38:21 +0000 (UTC) User-Agent: Thunderbird 1.5.0.7 (X11/20060922) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:7076 Date: 2006-10-20T14:38:21+02:00 List-Id: Dmitry A. Kazakov wrote: >> a = b(c); // value computation >> a = b[c]; // lookup >> a = static_cast(c); // translation to domain b >> >> I don't care how they are implemented, but I care about their meaning. >> >> I agree that this is very subjective. > > See, because you could not formalize either "lookup" or "computation" > semantics. Of course - just as I cannot formalize the rule that variable names should be meaningful. Still, some informal wisdom allows me to pick names (and/or operators) that have this property. :-) > [Well, "translation" is nothing but just an explicit > sub/supertype constructor.] In a sense, yes. The cast operator just sticks out more visibly. > Indexing operation (BTW, aggregates, ".", X'Attribute, "in", ".all" > too) should be primitive. The problem is that one cannot to it right > without 1) MD, 2) a proper construction model, 3) a more elaborated > subroutine extension mechanics than just inherit vs. replace. What's MD and what is really needed for 3)? -- Maciej Sobczak : http://www.msobczak.com/ Programming : http://www.msobczak.com/prog/