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-Thread: a07f3367d7,6aa1ec264ce25142 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.74.102 with SMTP id s6mr824289pav.21.1346980967392; Thu, 06 Sep 2012 18:22:47 -0700 (PDT) Path: t10ni3719423pbh.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!news-in-01.newsfeed.easynews.com!news-in-04.newsfeed.easynews.com!easynews.com!easynews!npeer02.iad.highwinds-media.com!feed-me.highwinds-media.com!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!feed.xsnews.nl!border-3.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!xlned.com!feeder1.xlned.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!feeder.erje.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Real syntax problems in Ada Date: Fri, 31 Aug 2012 09:39:35 +0200 Organization: cbb software GmbH Message-ID: <18m4qwqwcyyop$.1hca4hjchv8or$.dlg@40tude.net> References: <1p5r39cusgc1n$.18nj9sytckk6$.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Received-Bytes: 2032 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-08-31T09:39:35+02:00 List-Id: On Thu, 30 Aug 2012 15:34:08 -0700 (PDT), Adam Beneschan wrote: > Of course, to be consistent, that > would mean that if A were an access to an array, we'd use A(2) for the > index=2 element, A(2..5) to refer to a slice of the array, and A(all) to > refer to the entire array. Oh well. There is an alternative. Ada could pointers fully transparent. So Ptr_1 := Ptr_2 would have the meaning of present Ptr_1.all := Ptr_2.all. Pointer-specific operations would be defined explicitly procedure Shallow_Copy (Left : in out access-type; Right : access-type); procedure Assign (Left : in out access-type; Right : target-type); ... -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de