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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!blackbush.cw.net!cw.net!feed.news.tiscali.de!news.belwue.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> Date: Sat, 5 Mar 2005 15:39:23 +0100 Message-ID: NNTP-Posting-Date: 05 Mar 2005 15:39:13 MET NNTP-Posting-Host: f4e0008e.newsread4.arcor-online.net X-Trace: DXC=O4WE_cWI18G?_CdR_9TKXA:ejgIfPPldDjW\KbG]kaMHGSi?jHD8GO@;?E3AjS4WPK[6LHn;2LCVNVVa[ZlQni_ACSJhHe[KhbC X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:8642 comp.lang.c++:44158 comp.realtime:931 comp.software-eng:4462 Date: 2005-03-05T15:39:13+01:00 List-Id: On Sun, 6 Mar 2005 00:42:05 +1100, Turamnvia Suouriviaskimatta wrote: > I 'm following various posting in "comp.lang.ada, comp.lang.c++ , > comp.realtime, comp.software-eng" groups regarding selection of a > programming language of C, C++ or Ada for safety critical real-time > applications. The majority of expert/people recommend Ada for safety > critical real-time applications. I've many years of experience in C/C++ (and > Delphi) but no Ada knowledge. > > May I ask if it is too difficult to move from C/C++ to Ada? I don't think it is difficult. I learned C after Ada [83], that was difficult! If you know C++ you will find the concepts of classes and templates in Ada again, however, built on a different fundament. From Delphi you'll find a close, but much improved syntax, packages instead of units. OO/ADT in Ada is closer to C++ than to that stump in Delphi. If you programmed multi-threaded applications in C++, you will enjoy Ada's tasks and protected objects. > What is the best way of learning Ada for a C/C++ programmer? As with any language, the best way is to buy a pile of books, but not before starting a project. Do not concentrate on implementation details, avoid micro optimization (common to C programmers), enjoy "renames" instead of T& or Delphi's "with", never use pointers and remember, array index starts where you want it do! (:-)) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de