From: John Smith <yoursurrogategod@gmail.com>
Subject: Re: I do not understand this error...
Date: Sat, 6 Feb 2016 16:34:50 -0800 (PST)
Date: 2016-02-06T16:34:50-08:00 [thread overview]
Message-ID: <8778e70b-81e1-4dcc-8ecb-8bcaceb74b57@googlegroups.com> (raw)
In-Reply-To: <n960hm$787$1@dont-email.me>
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
next prev parent reply other threads:[~2016-02-07 0:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-06 22:55 I do not understand this error John Smith
2016-02-06 23:47 ` Jeffrey R. Carter
2016-02-07 0:34 ` John Smith [this message]
2016-02-07 4:36 ` Jeffrey R. Carter
2016-02-08 3:51 ` John Smith
2016-02-08 4:41 ` Jeffrey R. Carter
2016-02-08 23:33 ` Robert A Duff
2016-02-09 5:25 ` Jeffrey R. Carter
2016-02-09 9:43 ` G.B.
2016-02-09 16:14 ` AdaMagica
2016-02-08 23:39 ` John Smith
2016-02-09 5:25 ` Jeffrey R. Carter
2016-02-07 8:23 ` Dmitry A. Kazakov
2016-02-07 22:11 ` John Smith
2016-02-07 23:26 ` John Smith
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox