comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: "Size" of Ada vs. C++
Date: Tue, 16 Oct 2001 10:07:09 -0400
Date: 2001-10-16T14:07:11+00:00	[thread overview]
Message-ID: <9qheuf$8pe$1@nh.pace.co.uk> (raw)
In-Reply-To: bMIy7.30243$ev2.36939@www.newsranger.com

You need not even go that far - although I agree that the
constructor/destructor thingie is so confusing and filled with "I before E
except after C..." kinds of rules that you could probably write a novel on
that subject alone. Just consider the rules about infix operators and
expression evaluation - throw in side effects just for grins - and see how
fast you've asked for an arcane, cryptic, and turgid monograph be written on
the subject.

Feature for feature, C++ may in some sense be smaller - no tasks for one
thing. However, in terms of all the options and semantics of the features it
*does* have, I think one would have to conclude that it is definitely a
bigger language. Perhaps a half-way fair comparison might be based on the
size of the compiler front-ends required for both languages? (Although any
comparison of any code size is extremely problematic - as we've discussed
here before.) The weight of the ISO standard documents as a metric?)

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/


"Ted Dennison" <dennison@telepath.com> wrote in message
news:bMIy7.30243$ev2.36939@www.newsranger.com...
>
> 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.





  parent reply	other threads:[~2001-10-16 14:07 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                           ` "Size" of Ada vs. C++ Ted Dennison
2001-10-16  6:51                             ` 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 [this message]
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