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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a0c:f84d:: with SMTP id g13mr1500244qvo.217.1569315944571; Tue, 24 Sep 2019 02:05:44 -0700 (PDT) X-Received: by 2002:aca:750d:: with SMTP id q13mr1126745oic.99.1569315944168; Tue, 24 Sep 2019 02:05:44 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!o24no4003271qtl.0!news-out.google.com!x7ni1564qtf.0!nntp.google.com!o24no4003262qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 24 Sep 2019 02:05:44 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Implementing Rust's borrow checked pointers From: Lucretia Injection-Date: Tue, 24 Sep 2019 09:05:44 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:57177 Date: 2019-09-24T02:05:44-07:00 List-Id: Hi, Been talking to someone on Telegraph and he was saying Ada should implement this, just wondering whether Ada could? I posed a slight change to access type specification to do this, what do people think? type P is restricted access X; Restricted in this case would mean that once assigned it cannot be re-assigned into or out of with out some sort of move operation, which could be implemented as an attribute on the access type. A : P := L'Access; B : P := A'Move; -- A cannot no longer be used. begin A.all ... ; -- raises exception. I don't know enough about all this to put a complete proposal together, but I think I've got the basics understood. Luke.