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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d50803f457a25d9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!cyclone.bc.net!news.uunet.ca!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GtkAda Problem References: <1udKc.98748$dP1.333832@newsc.telia.net> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Mon, 19 Jul 2004 15:55:31 -0400 NNTP-Posting-Host: 198.96.223.163 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1090266929 198.96.223.163 (Mon, 19 Jul 2004 15:55:29 EDT) NNTP-Posting-Date: Mon, 19 Jul 2004 15:55:29 EDT Organization: Bell Sympatico Xref: g2news1.google.com comp.lang.ada:2247 Date: 2004-07-19T15:55:31-04:00 List-Id: Nick Roberts wrote: > On 18 Jul 2004 12:29:51 +0100, Simon Wright 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). There is a problem with this: routines in the generic instantiation do not permit 'Access. I tried this once, and was burned (ouch). I forget what the rationale behind it was, but I found it extremely inconvenient! :< > I'll have a look at my copy of the AARM to see if I can work out > whether this would work. The problem I had was I wanted to use one of the routines within the generic package as a callback, but that was forbidden by the compiler ('Access was not allowed - I think I even tried Unrestricted_Access, though I am less certain about that. I just remember that I didn't arrive at a solution at the time). A specific code sample would help in this discussion, but I don't have one at the moment. > 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! Well, if XP tells me that I have "unused icons" or "new programs were installed" one more time, I am likely to have a fit. >8-/ There must be a way to turn those STUPID features off. The unused icons feature is the stupidest thing I've seen yet. -- Warren W. Gay VE3WWG http://home.cogeco.ca/~ve3wwg