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!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Problem with limited with Date: Sat, 27 Jul 2013 10:13:37 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: <42dc042d-e458-42a4-abb7-23907982b88f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 27 Jul 2013 17:07:16 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="68bb7ebc916066bb85146425b2aa8565"; logging-data="3729"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VzadiUV6in2O/d5eJX1Hn0omx0/34uxY=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Cancel-Lock: sha1:bpB4nE4Yxdy5VO3BlVrAj0PQTb4= Xref: news.eternal-september.org comp.lang.ada:16559 Date: 2013-07-27T10:13:37-07:00 List-Id: On 07/27/2013 09:00 AM, Shark8 wrote: > > To be fair, the ONLY reason I have to use anonymous access types at all there > is because GNAT chokes up when I try to use the type itself. (I think there's > a comment to that effect elsewhere.) About the only thing you can do with limited with is declare access types designating the types in the withed pkg, So of course an Ada compiler complains if you try to do anything else. When you avoid visible access types, you naturally avoid limited with. This is how I've been able to work on large projects (> 1000 pkgs) without a single limited with. -- Jeff Carter "This trial is a travesty. It's a travesty of a mockery of a sham of a mockery of a travesty of two mockeries of a sham. ... Do you realize there's not a single homosexual on that jury?" Bananas 27