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,1cf653444208df72
X-Google-Attributes: gid103376,public
X-Google-ArrivalTime: 2001-10-04 09:45:16 PST
Path:
archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!npeer.kpnqwest.net!news.edf.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: ada vs. cpp
Date: 04 Oct 2001 18:26:33 +0200
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Sender: obry@PASCAL
Message-ID:
References:
NNTP-Posting-Host: 163.107.131.50
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: clnews.edf.fr 1002212890 24159 163.107.131.50 (4 Oct 2001 16:28:10
GMT)
X-Complaints-To: newsadm@news.edf.fr
NNTP-Posting-Date: 4 Oct 2001 16:28:10 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.106
Xref: archiver1.google.com comp.lang.ada:13723
Date: 2001-10-04T16:28:10+00:00
List-Id:
Pi writes:
> Hmm, Objects ...
>
> 1st : Ada will help you find more bugs at compile time than C++
> So your developpement time tends to be faster.
> But consider that interactions with the OS are more difficult.
> Not much more, but slightly.
Ok.
>
> Remember that Ada is at his very best if you give him few
> input, billions of calculations on numbers and than few output.
Not true.
> You say that it's text-based.
> Do you have to parse the text-input?
> In this case I would consider using Perl[1] for the parsing
> and than the actual treatement in Ada.
> (Strings aren't Ada's strength)
String not, but what about GNAT.Spitbol, GNAT.Spitpat, GNAT.Regpat,
GNAT.Regexp, GNAT.AWK and GNAT.Expect ?
> 2nd : Objects :
> as long as you dont need special features you're fine with Ada.
> Just consider a package like an object and you're cool.
A package like an object ???? Maybe like a class of objects...!!! Pakckage is
a way to organize things and to build abstractions like ADT and ASM.
>
> 3rd : Heritage
> Hmm, package heritage is ok, tagged types work too
>
> 4th : Polymorphism
> Argh, only possible with tagged type and true crap, so stick with C++
> Or you can try to hand-code it, but it's far less flexible and
> error-prone. But IMNSHO still better than Ada's tagged type variant.
My experience differ !
> 5th : Multiple Heritage
> Not possible with Ada.
>
> [1] Perl is your worst nightmare for big project,
> but the best language for text parsing out there,
> so if you use it, use it *only* for the parsing.
Perl is the worst nightmare for any sized project. The worst nightmare. I
still ask myself how is that possible to "invent" such language ???
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"