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,bd2212324e79c720 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!proxad.net!proxad.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Selecting Components From: Georg Bauhaus In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: # Message-ID: <1136765537.9323.18.camel@sonnenregen> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Date: Mon, 09 Jan 2006 01:12:18 +0100 NNTP-Posting-Date: 09 Jan 2006 01:07:31 MET NNTP-Posting-Host: e6ebb57b.newsread2.arcor-online.net X-Trace: DXC=MS^M72]7T1ia1IKbSTkC[iQ5U85hF6f;djW\KbG]kaMhQ>n?D9BSA]l\WYoASlQ8behP3YJKgE\jlTm`fKfA;iFc>ZF;m4];Q0h X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:2470 Date: 2006-01-09T01:07:31+01:00 List-Id: On Sat, 2006-01-07 at 20:24 +0000, Jeffrey R. Carter wrote: > What would be the consequences if a language were designed so that all > selections used dot notation, including arrays: > > Array.Index > Array.Index_1, Index_2 > Array.Low .. High Interesting. Is "Index_1, Index_2" and expression, or an identifier as in Pack.Op, Rec.Comp, etc.? with Index; ... declare Index: ... begin for k in a'range loop Result := Result + a.Index.k; end loop; end; For the record, in Eiffel you'd write array @ expr, Haskell uses array !! expr. Eiffel uses '.' for object.feature, not as an operator. Haskell uses '.' for function composition, too, if surrounded by white space.