From: tmoran@acm.org
Subject: Re: generic package with procedure paramter gives "not subtype conformant with declaration"
Date: Sun, 01 Oct 2006 18:17:57 -0500
Date: 2006-10-01T18:17:57-05:00 [thread overview]
Message-ID: <GvidnZ1Nvfw40b3YnZ2dnUVZ_oqdnZ2d@comcast.com> (raw)
In-Reply-To: 1159738009.962575.108920@i42g2000cwa.googlegroups.com
> > 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.
next prev parent reply other threads:[~2006-10-01 23:17 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 [this message]
2006-10-02 4:46 ` cl1
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