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.181.193 with SMTP id e184mr3075268iof.18.1522597560590; Sun, 01 Apr 2018 08:46:00 -0700 (PDT) X-Received: by 2002:a9d:58c9:: with SMTP id s9-v6mr342609oth.0.1522597560383; Sun, 01 Apr 2018 08:46:00 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!k65-v6no1338442ita.0!news-out.google.com!u64-v6ni4108itb.0!nntp.google.com!k65-v6no1338437ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 1 Apr 2018 08:46:00 -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: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <29943b13-00d1-443a-82f2-f55272770109@googlegroups.com> Subject: Re: limited agregate and limited components default initialization From: Jean-Claude Rostaing <00120260a@gmail.com> Injection-Date: Sun, 01 Apr 2018 15:46:00 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:51279 Date: 2018-04-01T08:46:00-07:00 List-Id: the smart pointer is NOT limited, but ITEM_TYPE is. Simply because I want to accept as many type as possible. generic type Item_type(<>) is limited private; package Pointers is type Accessor_type(Data: not null access Item_type) is limited private with Implicit_Dereference => Data; type Smart_Pointers(<>) is private; NULL_ACCESS: Constant Smart_Pointers; I could ask a constructor as a parameter, but it would be stupid since clients whou would want to instanciate with a limited type, won'obviously wouldn't be able to provide a constructor. I'm waiting for a solution... Randy the savior ?