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,d23826ff0acb491b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!club-internet.fr!feedme-small.clubint.net!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Gem 39 - compiler specific? Date: Thu, 3 Sep 2009 16:58:31 -0500 Organization: Jacob Sparre Andersen Message-ID: References: <9e0bbbcd-260f-48ed-8043-d6280c633e85@h3g2000yqa.googlegroups.com> <19268dbw82hf4.aii8as09aapk.dlg@40tude.net> <4bff103b-1797-4e2b-9dcf-7466b667c59b@d9g2000prh.googlegroups.com> <1s8kuin5t96vr$.1taw9mluqlplz$.dlg@40tude.net> <1bf4b63a-1e2d-41f1-97c6-8324d4b829ff@z3g2000prd.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1252015189 27097 69.95.181.76 (3 Sep 2009 21:59:49 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 3 Sep 2009 21:59:49 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Xref: g2news2.google.com comp.lang.ada:8138 Date: 2009-09-03T16:58:31-05:00 List-Id: "Adam Beneschan" wrote in message news:1bf4b63a-1e2d-41f1-97c6-8324d4b829ff@z3g2000prd.googlegroups.com... ... > However, one could make that case that if you declare a pool-specific > access type, then by definition it should point to something that's in > a pool; and that if you want an access that could point to an > arbitrary address (as Access_To_Address_Conversions would let you do), > you should use a general access type. I'd go further than that: it is a bug to have a pool-specific access type pointing at something outside of the pool. Indeed, Janus/Ada will raise Constraint_Error when dereferencing a value outside of the standard pool (for access types using the standard pool). [That was a feature of our Ada 83 compiler that we carried over to Ada 95, since it caught a lot of bugs caused by Unchecked_Deallocation and from corrupted I/O.] Randy.