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: 103376,70414f56d810c10c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.21.67 with SMTP id t3mr626062pbe.26.1316288488264; Sat, 17 Sep 2011 12:41:28 -0700 (PDT) Path: m9ni8429pbd.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: discriminant questions Date: Sat, 17 Sep 2011 21:41:26 +0200 Organization: cbb software GmbH Message-ID: References: <9f37b726-d80b-4d24-bf3f-28a14255f7fd@s20g2000yql.googlegroups.com> <86015926-d652-4265-aedd-413312d399f9@dq7g2000vbb.googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: v1unXtVHH3OmHkxoJWmV2g.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 Xref: news1.google.com comp.lang.ada:18006 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2011-09-17T21:41:26+02:00 List-Id: On Sat, 17 Sep 2011 10:46:44 -0700 (PDT), ytomino wrote: > I'm trying to make it as same syntax of raw access types by > Implicit_Dereference, like smart pointer of C++ having implicit cast operator T*(). C++ does not have implicit dereferencing at all. Ada has it but only for attributes, array indexing, component members. In all other cases you have to use explicit .all. And .Ptr is neither worse nor better. What are you trying to achieve? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de