comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: worth the hassle?
Date: 22 Jul 2002 15:56:51 -0400
Date: 2002-07-22T20:05:40+00:00	[thread overview]
Message-ID: <uit37r0xo.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: RYX_8.20976$927.2872@nwrddc01.gnilink.net

"Frank J. Lhota" <NOSPAM.lhota.adarose@verizon.net> writes:

> "Stephen Leake" <stephen.a.leake.1@gsfc.nasa.gov> wrote in message
> news:uheirlk4z.fsf@gsfc.nasa.gov...
> > My own opinion is that supporting limited types is a requirement for
> > any general-purpose container.
> >
> > This is probably one reason why Ada will never be as popular as C++;
> > in C++, you don't have to make this kind of decision :).
> 
> Why isn't this a C++ issue as well? Certainly it is possible to declare the
> C++ equivalent of a limited type, i.e. a type for which assignment is not
> available.

True, you can hide the copy operator by declaring it private. But the
template declaration does not declare whether you should/can do that,
so the decision is not obvious. You'll get link errors if your client
class does not have the required methods.

There _is_ a smiley there!

-- 
-- Stephe



  reply	other threads:[~2002-07-22 19:56 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-22 16:56 worth the hassle? chris.danx
2002-07-22 17:17 ` Wes Groleau
2002-07-22 17:45   ` chris.danx
2002-07-22 19:05     ` Wes Groleau
2002-07-22 17:56 ` chris.danx
2002-07-22 18:06   ` Stephen Leake
2002-07-22 21:06     ` chris.danx
2002-07-23 12:16       ` chris.danx
2002-07-23 12:36       ` chris.danx
2002-07-23 15:00       ` Stephen Leake
2002-07-23 15:15         ` chris.danx
2002-07-23 15:36           ` chris.danx
2002-07-23 16:19             ` Peter Hermann
2002-07-23 16:41               ` chris.danx
2002-07-23 17:35               ` Stephen Leake
2002-07-22 17:58 ` Stephen Leake
2002-07-22 18:15   ` Frank J. Lhota
2002-07-22 19:56     ` Stephen Leake [this message]
2002-07-23  5:56     ` Kevin Cline
2002-07-22 18:44   ` chris.danx
2002-07-23  5:39   ` Kevin Cline
2002-07-23 15:05     ` Stephen Leake
2002-07-23 18:34   ` Perhaps we keep lists elements private and adjust the elements to fit? Chad R. Meiners
2002-07-23 19:23     ` Stephen Leake
replies disabled

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