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,bc41e6a6a2da78a9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-14 02:05:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.27.83.146!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: Variable arguments magic in Ada to C code Date: Wed, 14 Aug 2002 09:05:49 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <87sn1s6f6a.fsf@almroth.com> <87ptww7yj6.fsf@almroth.com> NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1029315949 8083 217.17.192.37 (14 Aug 2002 09:05:49 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Wed, 14 Aug 2002 09:05:49 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:28012 Date: 2002-08-14T09:05:49+00:00 List-Id: * Dale Stanbrough wrote: >Lutz Donnerhacke wrote: >> >Anyway, I think I'm heading the right way, found the X11Ada binding which >> >includes a stdarg package doing just what I want. This excellent package >> >is written by Mitch Gart. >> >> Personally I find this package horrible. It will take some minutes before I >> can eat something again. > >Strange reaction. Perhaps you should move to another business. This is no option. >If you need to interface to software written using varargs, then I'm >not sure what you are suggesting one should do. Offer the strong typing features by declaring each argument count as a seperate function/procedure. Import those from the same linker name. This is recommended in the ARM. It works. If you need also variable argument types, use generics for Import. If you need to provide such a function, you have to use a completely different approach: You have to have a deep look into the calling system of your other world compiler ...