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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c1efbfe18e91d24 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-04 10:11:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!sccrnsc03.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Size of a pointer to a tagged record References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc03 1039025484 12.234.13.56 (Wed, 04 Dec 2002 18:11:24 GMT) NNTP-Posting-Date: Wed, 04 Dec 2002 18:11:24 GMT Organization: AT&T Broadband Date: Wed, 04 Dec 2002 18:11:24 GMT Xref: archiver1.google.com comp.lang.ada:31442 Date: 2002-12-04T18:11:24+00:00 List-Id: > Ada would handle setting the tag, the C part just takes a value > and stores it, it eventually returns it. If the C part just sees a set of bits and doesn't care what it represents, then the fact it's an access to a tagged type is irrelevant, it could just as well be an integer or string or whatever. You just need, on the Ada side, to use attributes to find the size of the black box object you are sending to C.