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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: non record limited type Date: Thu, 22 Feb 2018 17:24:25 -0600 Organization: JSA Research & Innovation Message-ID: References: <3a2e91d4-f563-4843-9c80-5a76732626d3@googlegroups.com> Injection-Date: Thu, 22 Feb 2018 23:24:25 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="23886"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:50574 Date: 2018-02-22T17:24:25-06:00 List-Id: "Dmitry A. Kazakov" wrote in message news:p6luqm$jb1$1@gioia.aioe.org... > On 22/02/2018 02:29, Randy Brukardt wrote: > >> These types that become limited just because of "limited private" also >> have >> the nasty property of becoming non-limited when you can see the full >> declaration. This causes all kinds of semantic complications that we'd >> rather not repeat, so everything new requires declaring it limited >> explicitly and staying that way. > > I don't see anything wrong with that, except for coupling to by-reference > semantics. On/off visibility of the copying operation is all OK, it is > just an operation. Parameter passing method is a different thing. Not to Ada: by-copy uses the assignment operation (which isn't quite the same thing as :=). Limited assignment is build-in-place only (for initialization purposes, another rule I know you hate). Probably could be different, but it would take extra work, and so far, there doesn't seem to be much need. Randy.