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,a50a3c40267219cc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-15 04:05:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!drn From: Robert*@ Newsgroups: comp.lang.ada Subject: Re: Why not combine Ada and C++? Date: 15 Oct 2001 03:36:23 -0700 Organization: Newsguy News Service [http://newsguy.com] Message-ID: <9qee7704pv@drn.newsguy.com> References: <3105e154.0110150021.32ff5426@posting.google.com> NNTP-Posting-Host: p-974.newsdawg.com X-Newsreader: Direct Read News 2.90 Xref: archiver1.google.com comp.lang.ada:14513 Date: 2001-10-15T03:36:23-07:00 List-Id: You can write Ada using many of C/C++ synatx. Use a C preprocessor. 1. create a .h file, and do this: #define { BEGIN #define } END #define [ ( #define ] ) #define = := #define == = etc... then, in your .c file, the following code: if( a==0 ) { b = 0; d[2] = 4; } when run via the preprocessor only, will come out as if( a = 0 ) BEGIN b := 0; d(2) := 4; END Then use the above as input to Ada compiler. (I am missing a THEN in the above, but you get the idea, tweek the .h file more to get it in :) btw, the above practise is not a good idea to do of course.