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,FREEMAIL_FROM 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 22:39:54 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: kcline17@hotmail.com (Kevin Cline) Newsgroups: comp.lang.ada Subject: Re: worth the hassle? Date: 22 Jul 2002 22:39:53 -0700 Organization: http://groups.google.com/ Message-ID: References: NNTP-Posting-Host: 192.76.70.227 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1027402794 7395 127.0.0.1 (23 Jul 2002 05:39:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 23 Jul 2002 05:39:54 GMT Xref: archiver1.google.com comp.lang.ada:27323 Date: 2002-07-23T05:39:54+00:00 List-Id: Stephen Leake wrote in message news:... > "chris.danx" writes: > > > > > > Is this a worth while tradeoff? I guess the question "how often are limited > > types used?" would serve better, as it would give a measure on which to base > > a decision. > > This was discussed extensively back in December 2001 during the Grace > Lists requirements development. You could search on Google for that > discussion. > > 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 :). That's right -- in C++ there is no distinction between classes with user-defined constructors and destructors and classes without them. This is another factor that makes generic programming easier in C++ than it is in Ada. I think the decision in Ada to create a distinction between 'limited' and ordinary types was a mistake. It gives programmers the impression that 'limited types' are somehow exotic, but IMHO almost all user-defined types should be limited types.