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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,3ebfb7ec7bfb06fa X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.8.4 with SMTP id n4mr1742754wia.0.1360469028062; Sat, 09 Feb 2013 20:03:48 -0800 (PST) MIME-Version: 1.0 Path: g1ni1983wig.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newspeer1.nac.net!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nrc-news.nrc.ca!goblin1!goblin2!goblin.stu.neva.ru!feeder.erje.net!eu.feeder.erje.net!newsfeed.x-privat.org!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Passing indefinite types Date: Tue, 5 Feb 2013 14:56:37 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <5262a822-409a-4c79-a842-0e716527cb70@googlegroups.com> <85ip696nlk.fsf@stephe-leake.org> <8d39b2ad-dc6c-4492-bc43-d2d01d748efa@googlegroups.com> <85r4ku52zz.fsf@stephe-leake.org> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1360097804 19661 69.95.181.76 (5 Feb 2013 20:56:44 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 5 Feb 2013 20:56:44 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Date: 2013-02-05T14:56:37-06:00 List-Id: "Stephen Leake" wrote in message news:85r4ku52zz.fsf@stephe-leake.org... ... > I tried using Suppress: > > pragma Suppress (Accessibility_Check, String_1); > pragma Suppress (Accessibility_Check, Sources); > pragma Suppress (Accessibility_Check, A); > > None of those helped; I'm not clear why not. Possibly because the > failure is a legality issue, not a run-time check issue. Correct: accessibility is a legality check in most cases. You could force it to be a dynamic check by using an anonynous-access-to-object type, and then you might be able to suppress the check (that's implementation-defined, of course, compilers are always allowed to make a check). Alternatively, just use 'Unchecked_Access and there is no accessibility check. (Of course, you're on your own at that point.) Randy.