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,4947e94bd021c540 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-09 16:06:53 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.vmunix.org!newspeer1-gui.server.ntli.net!ntli.net!newsfep1-gui.server.ntli.net.POSTED!53ab2750!not-for-mail From: "Steve Adams" Newsgroups: comp.lang.ada References: <0TUgb.639$2_2.29@newsfep1-gui.server.ntli.net> Subject: Re: C array to Ada pointer to unconstrained array without copying memory X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Inktomi-Trace: cpc1-fare1-3-0-cust50.cos2.cable.ntl.com 1065740706 610 81.96.32.50 (9 Oct 2003 23:05:06 GMT) Message-ID: Date: Fri, 10 Oct 2003 00:04:52 +0100 NNTP-Posting-Host: 80.1.224.4 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep1-gui.server.ntli.net 1065740706 80.1.224.4 (Fri, 10 Oct 2003 00:05:06 BST) NNTP-Posting-Date: Fri, 10 Oct 2003 00:05:06 BST Organization: ntl News Service Xref: archiver1.google.com comp.lang.ada:562 Date: 2003-10-10T00:04:52+01:00 List-Id: It's a plug in architectured simulation system. Used to live on VMS, but moving it to windows and linux, possibly other OS if needed. Trying to allow developers to use whatever tool they like to develop, I have working example plug ins in C, C++, Ada, Pascal, Fortran, Visual Basic. So different compilers are using the same interfaces (there's about 500 structures), but also a need to change layouts sometimes depending on OS. Plus DLL creation from ObjectAda and Gnat is different, DLL main is needed for Gnat for library initialisation, but OA does it for me, so I have to comment out packages by hand. We needed OA for the Codeview debug information at first, since the legacy elements needed to be checked, and the main core is VC++. However, we are trying to remain syntacticaly compatible with Gnat for future versions when the discrimiant check works on the DLL calling convention. I have an example that I might post to the newsgroup if I ever get time. BTW thanks to anyone that chatted about controlled types in Ada95, they were a life saver! "Preben Randhol" wrote in message news:slrnbo8819.4fb.randhol+valid_for_reply_from_news@kiuk0152.chembio.ntnu.no... > On 2003-10-08, Steve Adams wrote: > > before language lawyers attack, my project uses intermixed Ada, Fortran, > > C/C++ and Pascal. You end up sacrificing portability if you want it to work, > > in C this isn't a problem, a single code base manipulated via the > > preprocessor is easy, as does fortran. Ada doesn't which makes life hard. I > > wish theyed make preprocessing a feature. > > Use packages/child packages. > > Preprocessing is a bad idea. IMHO The code becomes messy. > > By the way what are you doing that need so much OS spesific code? > > Preben