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,38159b1b5557a2e7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-27 13:07:45 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Standard Ada Preprocessor Date: Tue, 27 Jan 2004 15:04:07 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <101dkjsf51mice9@corp.supernews.com> References: <400BDB7C.40100@noplace.com> <400D2150.6000705@noplace.com> <400E72F9.8060501@noplace.com> <100upo7ln5e3k59@corp.supernews.com> <400FC8E8.2040100@noplace.com> <4011127C.4030801@noplace.com> <101377e54car5cc@corp.supernews.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:4936 Date: 2004-01-27T15:04:07-06:00 List-Id: "Warren W. Gay VE3WWG" wrote in message news:XdxRb.49218$Kg6.359124@news20.bellglobal.com... ... > The "Ada phylosophy" works until you start interfacing to many > foreign components (normally C ones) that cannot be relied upon > to be the same. You cannot even rely on the same API to be > available, in some cases. This is where things get real ugly. > > The practical side of many bindings, requires me to deal > with portability issues in a "C wrapper". This may not always > be entirely possible to avoid because of C macros, but I > would like to put more code into Ada than into C. But I > can't, because Ada cannot deal with the portability issues. > That is, unless I resort to processes outside of the language > (like gnatprep and code generation). I've always thought that CM really needs to be applied on a per-line basis. That is, you should be able to branch individual lines of a source file. Clearly, such a system must be integrated with an editor, and should be able to cleanly handle multiple versions of a system. With such a system, you could cleanly manage any sort of differences without making the source code harder to read. It's unfortunate that such systems have never appeared in use. Randy.