comp.lang.ada
 help / color / mirror / Atom feed
From: "Nick Roberts" <nick.roberts@acm.org>
Subject: Re: GtkAda Problem
Date: Sun, 18 Jul 2004 15:17:11 +0100
Date: 2004-07-18T15:17:11+01:00	[thread overview]
Message-ID: <opsbb7ax1rp4pfvb@bram-2> (raw)
In-Reply-To: x7v7jt1v9hs.fsf@smaug.pushface.org

On 18 Jul 2004 12:29:51 +0100, Simon Wright <simon@pushface.org> wrote:

> Unrestricted_Access

Aha! Thank you, Simon.

It occurs to me that possibly a better approach would be to declare a  
library package which interfaces to some external subsystem (e.g. GTK or  
Win32) as a generic package (even if it has no generic parameters).

This way, the user can instantiate the package at the appropriate level  
(e.g. immediately in the declarative region of the main subprogram), and  
then use 'Access on subprograms at this level to provide values for  
access-to-subprogram types declared in the package (e.g. for callbacks).

It wouldn't be perfect, but it would actually provide a level (sorry ;-)  
of protection against accidentally calling back a subprogram in an inner  
scope that was no longer active, which is what the standard's restrictions  
on 'Access are intended to do.

I'll have a look at my copy of the AARM to see if I can work out whether  
this would work.

I've just discovered that Windows XP is now displaying the task bar 'low'  
(so that half of it disappears). It's not the monitor. Amazing. Microsoft  
seem to have a /genius/ for bugs!

-- 
Nick Roberts



  reply	other threads:[~2004-07-18 14:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-17 16:05 GtkAda Problem Oliver Doerler
2004-07-17 16:11 ` Sorry wrong Def.! Oliver Doerler
2004-07-17 17:38 ` GtkAda Problem Björn Persson
2004-07-17 20:00   ` Nick Roberts
2004-07-17 22:40     ` Jeffrey Carter
2004-07-18  0:01       ` Nick Roberts
2004-07-18 11:29         ` Simon Wright
2004-07-18 14:17           ` Nick Roberts [this message]
2004-07-19 19:55             ` Warren W. Gay VE3WWG
2004-07-19 21:58               ` Ludovic Brenta
2004-07-19 22:59                 ` Ed Falis
2004-07-20 16:58                 ` Warren W. Gay VE3WWG
2004-07-20 18:14               ` Nick Roberts
2004-07-19 23:55         ` Randy Brukardt
2004-07-17 17:44 ` Nick Roberts
2004-07-21 20:15 ` Oliver Doerler
  -- strict thread matches above, loose matches on Subject: below --
2003-01-07 11:45 gtkada problem Evangelista Sami
2003-01-07 18:46 ` Stephen Leake
replies disabled

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