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,3ce5636289df1f84 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-08 11:03:10 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: pointer in C & in Ada References: <3B710715.4C213A70@amsjv.com> X-Newsreader: Tom's custom newsreader Message-ID: Date: Wed, 08 Aug 2001 18:03:09 GMT NNTP-Posting-Host: 24.7.82.199 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 997293789 24.7.82.199 (Wed, 08 Aug 2001 11:03:09 PDT) NNTP-Posting-Date: Wed, 08 Aug 2001 11:03:09 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:11629 Date: 2001-08-08T18:03:09+00:00 List-Id: >This essentially permits the compiler to avoid issuing a warning about a >type mismatch in using functions where the programmer has decided the >type doesn't matter. Sometimes it's useful to replace a single C function that uses void* with two different Ada functions, with two different variable types, both of which call the same C function (or even both of which are simply "pragma import"s of the same C function). In C you can say "this parameter is this type, or it's any type", while in Ada you could make specific different functions (overloading the same name) to allow exactly the desired set of parameter types.