comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: "Size" of Ada vs. C++
Date: Mon, 15 Oct 2001 21:43:35 GMT
Date: 2001-10-15T21:43:35+00:00	[thread overview]
Message-ID: <bMIy7.30243$ev2.36939@www.newsranger.com> (raw)
In-Reply-To: 87ofn8a9dv.fsf@deneb.enyo.de

In article <87ofn8a9dv.fsf@deneb.enyo.de>, Florian Weimer says...
>
>I'm not sure if this is true if you look at the language core only
>(and don't take into account any non-essential run-time library
>components, such as containers or valarrays).

Then explain in one simple paragraph how C++ constructors and destructors work
(how they are invoked, what you have to do to make one "default", how you
prevent their use in parameter passing or as implicit casts, how you have to
invoke the parent's constructors from the constructor of a child, how to ensure
all destructors in a object's type hierarchy get called during delete, etc.)
This is all stuff that is pretty much required for basic C++ programming, and
its more arcane and exception-riddled than most English spelling rules.

If we throw out annex-based libraries as you suggest, Ada doesn't even *have*
constructors and destructors to talk about. :-)

Or we can compare the "cast system" of the two languages. Ada's rule is pretty
simple: the types have to be derived from each other, or predefined numeric
types. C++ on the other hand, has at least 3 different types of cast, plus an
old fashioned implicit one. To make things more interesting, constructor writers
can inadvertently create new implicit ones if they aren't careful...

I'm not saying all this extra stuff in C++ is *bad*. But there certianly is way
more of it.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html

No trees were killed in the sending of this message. 
However a large number of electrons were terribly inconvenienced.



  reply	other threads:[~2001-10-15 21:43 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9q223u$lap2j$1@ID-77397.news.dfncis.de>
     [not found] ` <46vast4p1qnb0e8bt59v4e8616hacvcgtd@4ax.com>
     [not found]   ` <Eojx7.4111$gT6.2494200@news1.rdc1.sfba.home.com>
     [not found]     ` <3BC5C49F.B1386292@ao_spam_nix.de>
     [not found]       ` <mnVx7.45856$WW.2936617@bgtnsc05-news.ops.worldnet.att.net>
     [not found]         ` <Gb2y7.13108$gT6.7666011@news1.rdc1.sfba.home.com>
2001-10-14  2:49           ` Try J# ( was Re: J# is there ) Israel Raj T
2001-10-14  4:39             ` Dale Stanbrough
2001-10-14  5:23               ` Language design by by committee ( was Re: Try J# ( was Re: J# is there )) Israel Raj T
2001-10-14  5:50                 ` Dale Stanbrough
2001-10-14  6:12                   ` Israel Raj T
2001-10-14  7:23                     ` Dale Stanbrough
2001-10-14 10:00                       ` Israel Raj T
2001-10-14 10:34                         ` Dale Stanbrough
2001-10-14  6:37                   ` Israel Raj T
2001-10-14  7:18                     ` Dale Stanbrough
2001-10-14 17:27                       ` Mike Silva
2001-10-21  7:12                         ` mike
2001-10-15 13:53                       ` Ted Dennison
2001-10-15 21:19                         ` Florian Weimer
2001-10-15 21:43                           ` Ted Dennison [this message]
2001-10-16  6:51                             ` "Size" of Ada vs. C++ Florian Weimer
2001-10-16  8:53                               ` Robert*
     [not found]                               ` <8sXy7.31264$ev2.37455@www.newsranger.com>
2001-10-16 15:23                                 ` Sice of C++ vs Ada Marin David Condic
2001-10-17  5:39                               ` "Size" of Ada vs. C++ Richard Riehle
2001-10-16 14:07                             ` Marin David Condic
2001-10-15 22:27                           ` Language design by by committee ( was Re: Try J# ( was Re: J# is there )) minyard
2001-10-16  7:00                             ` Florian Weimer
2001-10-16  7:01                             ` "Size" of Ada vs. C++ " Florian Weimer
2001-10-16 15:30                               ` minyard
2001-10-20  0:54                         ` Language design by by committee ( was Re: Try J# ( was Re: J# " Richard Riehle
2001-10-15  9:18                     ` Philip Anderson
2001-10-15  1:54                 ` Robert Dewar
2001-10-15  2:20                   ` Darren New
2001-10-15 16:44                 ` Ray Blaak
2001-10-15 17:12                   ` Marin David Condic
2001-10-15 18:12                   ` Pascal Obry
2001-10-16  4:09                     ` Tim Tyler
2001-10-16  6:01                       ` Ray Blaak
2001-10-16 14:21                         ` Arthur Evans Jr
2001-10-17  9:35                           ` Where is jean Ichibiah now ? Israel Raj T
2001-10-17 11:57                             ` john
2001-10-17 14:38                               ` Israel Raj T
2001-10-17 14:08                             ` Wes Groleau
2001-10-18  8:17                               ` JTK
2001-10-16 14:23                         ` Language design by by committee ( was Re: Try J# ( was Re: J# is there )) Arthur Evans Jr
2001-10-16 14:19                       ` Wes Groleau
2001-10-16 19:15                       ` Darren New
2001-10-16 14:49                     ` Ted Dennison
2001-11-13  2:15                       ` David Thompson
2001-10-15 19:57                   ` Wes Groleau
2001-10-15 21:01                     ` Marin David Condic
2001-10-16  4:01                   ` Tim Tyler
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox