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: a07f3367d7,cb04cee6116c8ced X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!ra.nrl.navy.mil!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Package's private parts and protected types Date: Mon, 08 Feb 2010 15:39:19 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <7ff3810f-3ee3-4f39-a54c-933ad7d0655c@36g2000yqu.googlegroups.com> <1v2la97s2yyvd.1rcy0ana8mver.dlg@40tude.net> <3bb38996-47f7-4f30-8255-f011501404b5@b10g2000yqa.googlegroups.com> <5lipkh.kut.ln@hunter.axlog.fr> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: pcls6.std.com 1265661545 17484 192.74.137.71 (8 Feb 2010 20:39:05 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 8 Feb 2010 20:39:05 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:s8HvIMCbQVCsiKKyIwb4Fj7N8S8= Xref: g2news1.google.com comp.lang.ada:8994 Date: 2010-02-08T15:39:19-05:00 List-Id: Jean-Pierre Rosen writes: > Robert A Duff a �crit : >> "Dmitry A. Kazakov" writes: > >> What were they thinking?! The "task type T is..." syntax >> is so obviously broken. The protected syntax just copied >> that mistake, so it's not a mistake by itself. >> > That it is nice to have singletons that are clearly singletons, with a > syntax close to the syntax for types. Why on earth would you want an object decl to look like a type decl? The syntax for a variable decl is: X : T; If we want to use an anonymous array type, we say: X : array (...) of ...; -- unclearly a singleton? Hmm... So clearly the syntax for singleton tasks should be: My_Task : task ... -- seems clear to me rather than: task My_Task is ... And why are singletons allowed for some types but not others? If they make sense for arrays, tasks, and protected objects, then they make sense for records, etc. Sorry, but I stand by my opinion that this area is a mess! It's not hugely important, though. I guess I just value uniformity more than JDI. Note that syntactic uniformity makes the RM smaller, partly because of fewer syntax rules, but more importantly because non-syntax rules need to refer to syntactic categories by name. - Bob