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,48fa8e3cfaec41af X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-22 13:02:14 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: worth the hassle? Date: 22 Jul 2002 15:56:51 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1027368340 23192 128.183.220.71 (22 Jul 2002 20:05:40 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 22 Jul 2002 20:05:40 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:27315 Date: 2002-07-22T20:05:40+00:00 List-Id: "Frank J. Lhota" writes: > "Stephen Leake" 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