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-Thread: 103376,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Thread: f43e6,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,gid115aec,gidf43e6,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Date: Thu, 24 Mar 2005 11:43:35 -0000 Organization: BAE SYSTEMS Message-ID: <4242a630$1_1@glkas0286.greenlnk.net> References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <87r7iu85lf.fsf@insalien.org> <1110052142.832650@athnrd02> <1110284070.410136.205090@o13g2000cwo.googlegroups.com> <395uqaF5rhu2mU1@individual.net> <1111607633.301232.62490@z14g2000cwz.googlegroups.com> <4241d7a2$0$7285$afc38c87@> X-Trace: individual.net 0Vk5EcwUqKZ487zUNZOksA2zMbI2PsySO5xT37DxI9d/wWjC9w X-Orig-Path: glkas0286.greenlnk.net!glkas0286!not-for-mail X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net Xref: g2news1.google.com comp.lang.ada:9898 comp.lang.c++:47047 comp.realtime:1678 comp.software-eng:5283 Date: 2005-03-24T11:43:35+00:00 List-Id: Hyman Rosen wrote: > Martin Dowie wrote: >> GNAT comes with an Ada-centric preprocessor but >> there is nothing to stop you using the 'C' one. > > Yes there is. The C preprocessor works with C tokens, and Ada's > use of the single quote character for attributes will utterly > confuse it. Ok - but the only part of the C preprocessor that I've ever even seen used embedded in Ada code was some "#ifdef" to allow types to have different ranges on different platforms. Personally, I'd rather use a separate package and a rename and let the build process take care of everything - but that's how this one company had decided to do it. Cheers -- Martin