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,70414f56d810c10c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.12.68 with SMTP id w4mr1960087pbb.18.1316475337860; Mon, 19 Sep 2011 16:35:37 -0700 (PDT) MIME-Version: 1.0 Path: lh7ni755pbb.0!nntp.google.com!news1.google.com!goblin3!goblin2!goblin.stu.neva.ru!news.stack.nl!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!jacob-sparre.dk!ada-dk.org!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: discriminant questions Date: Mon, 19 Sep 2011 18:35:33 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <9f37b726-d80b-4d24-bf3f-28a14255f7fd@s20g2000yql.googlegroups.com> <86015926-d652-4265-aedd-413312d399f9@dq7g2000vbb.googlegroups.com> <0d272f62-67d0-4905-972c-8a7e912c5531@en1g2000vbb.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1316475336 18812 69.95.181.76 (19 Sep 2011 23:35:36 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 19 Sep 2011 23:35:36 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 Xref: news1.google.com comp.lang.ada:18036 Date: 2011-09-19T18:35:33-05:00 List-Id: "ytomino" wrote in message news:0d272f62-67d0-4905-972c-8a7e912c5531@en1g2000vbb.googlegroups.com... ... > Return to the first question. An access discriminant can not have > default value. > So I can not make smart pointer like syntax of raw access types after all. > I want to know the reason. The short answer is that the model of access discriminants is such that objects with them can never allow them to be changed. The reasons for this are extremely hard to explain (it has to do with accessibility checking - the RM text that Steve Baird has started calling the "heart of darkness" ;-), and I'm not going to try. If you want to try to understand it, I suggest you read the AARM notes in 3.7, particularly those following 3.7(10). And if you succeed at understanding this, I suggest that you immediately join the ARG, because we could use the help. :-) Randy.