comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Dispatching callback handed over to C
Date: Sat, 07 Apr 2012 09:28:13 -0400
Date: 2012-04-07T09:28:13-04:00	[thread overview]
Message-ID: <wcchawvzn6a.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: m2iphbhj5a.fsf@pushface.org

Simon Wright <simon@pushface.org> writes:

> Natasha Kerensikova <lithiumcat@gmail.com> writes:

> I think that must be it.

That's right.  If you're not doing anything with these things
on the C side, except copying the pointers around, then it's
fine to silence the warning.  Use the form of pragma Warnings(Off/On)
with a string around that one line of code, so you only silence
the one warning.

There's nothing wrong with silencing warnings when they are
false alarms, although it's a good idea to have a comment
explaining why.

>...I did wonder whether a classwide pointer might
> be a fat pointer, ...

GNAT never uses fat pointers for class-wide.  Fat pointers
are used only when the designated type is an unconstrained
array (and there are ways to get thin pointers for arrays).
I am ignoring access-to-subprogram, here.

- Bob



  reply	other threads:[~2012-04-07 13:28 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-03  7:19 Dispatching callback handed over to C Natasha Kerensikova
2012-04-03  9:04 ` Brian Drummond
2012-04-03  9:21   ` Thomas Locke
2012-04-03  9:37 ` Maciej Sobczak
2012-04-03 12:02   ` Natasha Kerensikova
2012-04-03 14:42     ` Maciej Sobczak
2012-04-03 20:20       ` Randy Brukardt
2012-04-04  7:26         ` Georg Bauhaus
2012-04-04  7:56         ` Natasha Kerensikova
2012-04-04 19:28           ` Randy Brukardt
2012-04-05  8:59             ` Natasha Kerensikova
2012-04-05 21:04               ` Randy Brukardt
2012-04-04 19:55           ` Simon Wright
2012-04-04 11:34         ` Maciej Sobczak
2012-04-04 19:16           ` Randy Brukardt
2012-04-05  7:28             ` Maciej Sobczak
2012-04-05 21:32               ` Randy Brukardt
2012-04-07  8:55                 ` Natasha Kerensikova
2012-04-07 11:32                   ` Simon Wright
2012-04-07 13:28                     ` Robert A Duff [this message]
2012-04-05  9:13             ` Natasha Kerensikova
2012-04-05 21:06               ` Randy Brukardt
2012-04-06  7:30               ` Maciej Sobczak
2012-04-06 11:41                 ` Simon Wright
2012-04-10  7:15                   ` Maciej Sobczak
replies disabled

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