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.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS autolearn=no autolearn_force=no version=3.4.4 X-Received: by 10.107.52.66 with SMTP id b63mr3752977ioa.66.1522625958352; Sun, 01 Apr 2018 16:39:18 -0700 (PDT) X-Received: by 2002:a9d:590b:: with SMTP id t11-v6mr414946oth.7.1522625958217; Sun, 01 Apr 2018 16:39:18 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!maths.tcd.ie!newsswitch.lcs.mit.edu!ottix-news.ottix.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!u184-v6no3490493ita.0!news-out.google.com!u64-v6ni4492itb.0!nntp.google.com!u184-v6no3490488ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 1 Apr 2018 16:39:17 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.245.160.83; posting-account=rhqvKAoAAABpikMmPHJSZh4400BboHwT NNTP-Posting-Host: 85.245.160.83 References: <853b698c-204b-4a5e-a486-b2d7cb664b3a@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: limited agregate and limited components default initialization From: Jean-Claude Rostaing <00120260a@gmail.com> Injection-Date: Sun, 01 Apr 2018 23:39:18 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:51286 Date: 2018-04-01T16:39:17-07:00 List-Id: Ok, now I know why what I wanted to do was impossible. To store an object i= nto an accessor or whatever, or to create it with allocator, with only a gi= ven "value" of this limited type, you need to COPY this value, whatever you= do. Which goes against the very idea of limited type. I feel more intelligent thanks to that... And I know why though ITEM_TYPE is indefinite limited, you can only transla= te from its POINTER to a smart pointer, never directly from a value of that= limited type.