comp.lang.ada
 help / color / mirror / Atom feed
From: Florian Weimer <fw@deneb.enyo.de>
Subject: Re: "Size" of Ada vs. C++
Date: Tue, 16 Oct 2001 08:51:07 +0200
Date: 2001-10-16T08:51:07+02:00	[thread overview]
Message-ID: <87y9mcoz6s.fsf@deneb.enyo.de> (raw)
In-Reply-To: bMIy7.30243$ev2.36939@www.newsranger.com

Ted Dennison<dennison@telepath.com> writes:

>>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

I'm going to do that if you describe how to implement smart pointers
in Ada (without taking advantage of an implementation permission). ;-)

> 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.

This is very true, but it doesn't make Ada a smaller language than C++
per se.

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

Section 7.6 is not in Annex A.

> 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.

What about Ada.Unchecked_Conversion?  It's comparable to
reinterpret_cast<>.

> To make things more interesting, constructor writers
> can inadvertently create new implicit ones if they aren't careful...

That's why the "explicit" keyword was introduced.

Anyway, I think it's rather strange to judge a language by the "size"
of its definition.



  reply	other threads:[~2001-10-16  6:51 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 [this message]
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