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,23ca868289d9f0c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 01 Oct 2006 18:17:57 -0500 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: generic package with procedure paramter gives "not subtype conformant with declaration" References: <1159738009.962575.108920@i42g2000cwa.googlegroups.com> X-Newsreader: Tom's custom newsreader Message-ID: Date: Sun, 01 Oct 2006 18:17:57 -0500 NNTP-Posting-Host: 67.164.83.70 X-Trace: sv3-mRvlfgRo3DoKo+idKDxobc6/w5EO697713y71J7wxsKCkJj+v/iSPPvDAJOe3rqb5oV3WsEmhiJrBto!0ahOIC1fY3gvNCDe+2FsD8Nhp+DfSOZCKj7oRCOAwPVK65yvgJsVK4z510IW3m+nD7UFjH5Q+uda!jE9IZaqKIyfg0A== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:6831 Date: 2006-10-01T18:17:57-05:00 List-Id: > > 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.