comp.lang.ada
 help / color / mirror / Atom feed
From: "cl1" <charles.w.lambert@gmail.com>
Subject: Re: generic package with procedure paramter gives "not subtype conformant with declaration"
Date: 1 Oct 2006 21:46:04 -0700
Date: 2006-10-01T21:46:04-07:00	[thread overview]
Message-ID: <1159764364.032190.175700@h48g2000cwc.googlegroups.com> (raw)
In-Reply-To: <GvidnZ1Nvfw40b3YnZ2dnUVZ_oqdnZ2d@comcast.com>


tmoran@acm.org wrote:
> > > For types, any convention-C access type will work for a void pointer
> > > when the values come from C and are never dereferenced by the Ada.
> > ...
> > Once i store the access in the pointer i no longer need to know
> > what type it is. I just need the reference to pass to the C code.
>    Maybe I'm not understanding but if the values come from C and are
> never used by Ada, but merely passed on to other calls on C, why not
> just declare them as
>   type C_Param is new Interfaces.Unsigned_32;
> and treat them in Ada as a black box, size 32, content unknown.

The values come from ada.




  reply	other threads:[~2006-10-02  4:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-30 21:20 generic package with procedure paramter gives "not subtype conformant with declaration" cl1
2006-10-01  1:27 ` Jeffrey R. Carter
2006-10-01  6:02   ` cl1
2006-10-01 19:43     ` Jeffrey R. Carter
2006-10-01 21:26       ` cl1
2006-10-01 23:17         ` tmoran
2006-10-02  4:46           ` cl1 [this message]
2006-10-02  3:24         ` Jeffrey R. Carter
2006-10-02  4:31           ` cl1
2006-10-02  7:17             ` Alex R. Mosteo
2006-10-02 20:04             ` Jeffrey R. Carter
2006-10-03 18:49               ` cl1
2006-10-01  7:18 ` Simon Wright
2006-10-01 19:42   ` cl1
2006-10-01 20:18     ` Robert A Duff
2006-10-01 21:32       ` cl1
replies disabled

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