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,FREEMAIL_FROM, WEIRD_PORT autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.31.52.207 with SMTP id b198mr20034868vka.5.1454805290672; Sat, 06 Feb 2016 16:34:50 -0800 (PST) X-Received: by 10.182.153.2 with SMTP id vc2mr370633obb.11.1454805290635; Sat, 06 Feb 2016 16:34:50 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!94no877970qgt.1!news-out.google.com!l1ni5223igd.0!nntp.google.com!o2no2790481iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 6 Feb 2016 16:34:50 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:18f:900:8350:ba86:87ff:fed6:5907; posting-account=AvekzAoAAABj-TclKcOWQmXwA49MFPGX NNTP-Posting-Host: 2601:18f:900:8350:ba86:87ff:fed6:5907 References: <0528d7a8-773d-44b0-8f0a-e9aa48867443@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8778e70b-81e1-4dcc-8ecb-8bcaceb74b57@googlegroups.com> Subject: Re: I do not understand this error... From: John Smith Injection-Date: Sun, 07 Feb 2016 00:34:50 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 2028 X-Received-Body-CRC: 1015944816 Xref: news.eternal-september.org comp.lang.ada:29386 Date: 2016-02-06T16:34:50-08:00 List-Id: The the following example is wrong: http://rosettacode.org/wiki/Hello_world/Graphical#Ada If so, then how would you fix this? On Saturday, February 6, 2016 at 6:47:49 PM UTC-5, Jeffrey R. Carter wrote: > 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