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,4deb6c62a5e19f2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-29 18:20:26 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: type Foo_ptr in new void*; References: <9k2btj$5hj$1@news.tpi.pl> X-Newsreader: Tom's custom newsreader Message-ID: Date: Mon, 30 Jul 2001 01:20:24 GMT NNTP-Posting-Host: 24.7.82.199 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 996456024 24.7.82.199 (Sun, 29 Jul 2001 18:20:24 PDT) NNTP-Posting-Date: Sun, 29 Jul 2001 18:20:24 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:10702 Date: 2001-07-30T01:20:24+00:00 List-Id: type Foo_ptr is new Interfaces.C.Strings.chars_ptr; >You can use `struct Foo *' without declaring `struct Foo'. That's like type Foo; type Foo_Pointer is access Foo; except that in Ada you would need a full declaration of Foo eventually. In any case, clearly if you don't know the structure of a Foo, but only pass around pointers to them, then the suggestion type Foo_ptr is new Interfaces.C.Strings.chars_ptr; seems to fit. Any problems with that?