comp.lang.ada
 help / color / mirror / Atom feed
From: richardthiebaud <thiebauddick2@aol.com>
Subject: Re: What does this error mean and how do I correct this?
Date: Fri, 1 Sep 2023 18:51:40 -0400	[thread overview]
Message-ID: <uctpts$1p5s$1@dont-email.me> (raw)
In-Reply-To: <uctlvd$17md$2@dont-email.me>

On 9/1/23 17:44, Luke A. Guest wrote:
> On 01/09/2023 22:41, Luke A. Guest wrote:
>> Handler needs to be in a package you with.
>>
> 
>>> begin  -- Gtk.Init;
....;
>>>
>>> test1.adb:32:17: subprogram must not be deeper than access type
> 
> Ada doesn't like 'access types to be in an area that can go out of scope 
> iirc. You can get around it with unchecked_access, but if you put 
> handler into a package of it's own, it's at library level and is 
> available to grab the access of.
> 
That worked, thanks. Under gtkada, must procedures that handle events 
always be in their own package?

  reply	other threads:[~2023-09-01 22:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-01 21:04 What does this error mean and how do I correct this? richardthiebaud
2023-09-01 21:41 ` Luke A. Guest
2023-09-01 21:44   ` Luke A. Guest
2023-09-01 22:51     ` richardthiebaud [this message]
2023-09-03 14:06       ` Simon Wright
2023-09-03 15:22         ` Luke A. Guest
2023-09-03 18:44         ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox