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,WEIRD_PORT 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!mx02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: I do not understand this error... Date: Sat, 6 Feb 2016 16:47:43 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <0528d7a8-773d-44b0-8f0a-e9aa48867443@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 6 Feb 2016 23:44:55 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="caa759af2a9c666aec02942f6fe5abd6"; logging-data="7431"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18fiM+Ka3kNCadOQrEss3u9o/b8cj9j2IY=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: <0528d7a8-773d-44b0-8f0a-e9aa48867443@googlegroups.com> X-Mozilla-News-Host: news://freenews.netfront.net Cancel-Lock: sha1:9HOOryKKNfuDMvAmeqbpN0HJB1I= Xref: news.eternal-september.org comp.lang.ada:29384 Date: 2016-02-06T16:47:43-07:00 List-Id: On 02/06/2016 03:55 PM, John Smith wrote: > > gtk_test.adb:16:04: instantiation error at gtk-handlers.ads:1039 > gtk_test.adb:16:04: subprogram must not be deeper than access type > gtk_test.adb:17:04: instantiation error at gtk-handlers.ads:437 > gtk_test.adb:17:04: subprogram must not be deeper than access type This an accessibility check. It means that it's possible for an access-to-subprogram value to be copied into a variable which has longer life than the subprogram. This is not allowed by the language. -- Jeff Carter "Help! Help! I'm being repressed!" Monty Python & the Holy Grail 67