Re: Teaching new tricks to an old dog (C++ -->Ada)

From: Dmitry A. Kazakov (mailbox_at_dmitry-kazakov.de)
Date: 03/05/05


Date: Sat, 5 Mar 2005 15:39:23 +0100

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


Relevant Pages

  • Re: Teaching new tricks to an old dog (C++ -->Ada)
    ... > critical real-time applications. ... ADA provides for concise system description right there within the ... > Delphi) but no Ada knowledge. ... Lastly, avoid comparing the languages. ...
    (comp.lang.ada)
  • Re: Teaching new tricks to an old dog (C++ -->Ada)
    ... > critical real-time applications. ... ADA provides for concise system description right there within the ... > Delphi) but no Ada knowledge. ... Lastly, avoid comparing the languages. ...
    (comp.lang.cpp)
  • Re: Teaching new tricks to an old dog (C++ -->Ada)
    ... The majority of expert/people recommend Ada for safety ... > Delphi) but no Ada knowledge. ... programmed multi-threaded applications in C++, ...
    (comp.lang.ada)
  • Re: delphi to ada translator
    ... >do you know any delphi to ada translator? ... getting it called by a GNAT Ada 95 main program (inside of a *.exe ... Since attaching to a DLL slows down debugging very significantly, ... Delphi is in the *.exe file. ...
    (comp.lang.ada)
  • Re: "Ravenscar-like" profile for C/C++
    ... >> ADA Ravenscar is a restricted subset of the ADA language that has been ... it allow to build very deterministic applications that support ...
    (comp.lang.c)