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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,103b407e8b68350b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-06 08:08:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!xmission!news-out.spamkiller.net!propagator2-maxim!news-in.spamkiller.net!newsfeed.sjc.globix.net!cyclone-sf.pbi.net!151.164.30.35!cyclone.swbell.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail From: Wes Groleau Reply-To: wesgroleau@despammed.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Anybody in US using ADA ? One silly idea.. References: <3E147D79.2070703@cogeco.ca> <4519e058.0301031434.51a0c880@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Mon, 06 Jan 2003 11:08:24 -0500 NNTP-Posting-Host: 151.168.133.155 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1041869304 151.168.133.155 (Mon, 06 Jan 2003 10:08:24 CST) NNTP-Posting-Date: Mon, 06 Jan 2003 10:08:24 CST Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:32617 Date: 2003-01-06T11:08:24-05:00 List-Id: >>>smooth integration of user-defined and primitive datatypes, >> >>Why do you think C++ is better in that respect? > > Because all operations applicable to C++ fundamental types can be made > to work for user-defined types. Ada's fundamental types have > attributes, but those attributes can not be provided for user-defined > types. This makes generic programming in Ada more difficult than > generic programming in C++. I don't know C++ very well, but this complaint about Ada is true--at least partially. I do understand C and Java, so I'll risk interpolating to C++ .... Does C++ have subtypes and derived types? The lack of such in Java is really a pain. And these DO inherit attributes from parent types. But I wish I could define things like 'First and 'Last when I create a private type for which they are meaningful. It would also be nice to be able to redefine 'Size for an access type or record containing an access type. But these are minor issues.