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,4cb1f8d1c17d39a8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.35.68 with SMTP id f4mr15582601pbj.5.1320136896873; Tue, 01 Nov 2011 01:41:36 -0700 (PDT) Path: p6ni53118pbn.0!nntp.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Ada 'hello world' for Android; success! References: <8239efcjuw.fsf@stephe-leake.org> <98ca5430-aa52-4e39-b789-70d0dd6adb46@d33g2000prb.googlegroups.com> <824nyrq5p6.fsf@stephe-leake.org> <4eac1ca1$0$7625$9b4e6d93@newsspool1.arcor-online.net> <82mxciogt0.fsf@stephe-leake.org> Date: Tue, 01 Nov 2011 04:41:27 -0400 Message-ID: <8239e8nsjs.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt) Cancel-Lock: sha1:XT2vrBHw8sYM81Cur65oANU5kLo= MIME-Version: 1.0 X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 7db974eafb0c0e029e66124478 Xref: news1.google.com comp.lang.ada:18772 Content-Type: text/plain; charset=us-ascii Date: 2011-11-01T04:41:27-04:00 List-Id: "Randy Brukardt" writes: > "Stephen Leake" wrote in message > news:82mxciogt0.fsf@stephe-leake.org... > ... >> In brief, _any_ framework that uses dispatching on class-wide >> objects needs reference semantics. In Ada, that is indicated by the >> explicit word 'access'. In Java, it is implicit. I prefer explicit. > > I don't follow this. All tagged objects in Ada are by-reference, so you > never need explicit "access" for parameter passing. Yes, but that's not the meaning of "reference semantics" I intended; I mean "an explicit pointer of some sort". > And class-wide objects can be stored in the Ada containers without > using "access" as well. In which case a Cursor provides the explicit pointer. We've been around on this before; see http://stephe-leake.org/ada/access_vs_object.html I guess it's time to update that with Ada 2012 features. -- -- Stephe