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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,703c4f68db81387d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!proxad.net!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Date: Thu, 10 Mar 2005 19:25:33 +0100 Organization: PVV Message-ID: References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7BIT X-Trace: melchior.cuivre.fr.eu.org 1110479163 26121 212.85.156.195 (10 Mar 2005 18:26:03 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Thu, 10 Mar 2005 18:26:03 +0000 (UTC) Cc: comp.lang.ada@ada-france.org To: Turamnvia Suouriviaskimatta Return-Path: In-reply-to: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:9051 Date: 2005-03-10T19:25:33+01:00 Turamnvia Suouriviaskimatta wrote on 05/03/2005 (14:00) : > 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? > What is the best way of learning Ada for a C/C++ programmer? It is not hard at all, but one thing you must do and that is: Never demand that the way you do something in C/C++ is the correct way to do it in Ada. :-) The Ada way is different because the Ada language is different. First thing you will notice is that the use for pointers in Ada is very small compered to C/C++. Some links: http://www.adahome.com/Ammo/cpp2ada.html (Note! This site is dead, meaning no longer updated, but the tutorial can give you a nice start) Use these sites to learn more: http://www.adapower.com/ http://www.adaworld.com/ There are several on-line books available. I can recommened: Ada distilled (great for people who knows programming) Ada 95: The Craft of Object-Oriented Programming and Object-oriented Software Design in Ada 95 2nd Ed. (this latter book is considered too C++ flavoured to be a "the Ada way" book, but it may be useful) You'll find them on the sites above... Good luck! (not that you'll need it ;-) ) Preben