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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c3a7c1845ec5caf9 X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: Equality operator overloading in ADA 83 Date: 1997/04/25 Message-ID: #1/1 X-Deja-AN: 237280854 References: <01bc4e9b$ac0e7fa0$72041dc2@lightning> <335E0A26.16D0@elca-matrix.ch> <33692089.5794807@news.airmail.net> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 1997-04-25T00:00:00+00:00 List-Id: In article <33692089.5794807@news.airmail.net>, Kevin Cline wrote: >Another outstanding reason why Ada never became popular for desktop >applications. String manipulation with the Ada standard string types is a >major pain in the butt, and amazingly inefficient. I'll agree that string manipulation (using Standard.String) is sometimes a pain in the butt. But I don't see how this contributes to the alleged demise of Ada, since the main competitor during the mid-80's (C) is even worse. Nul-terminated strings are much more of a pain in the butt (e.g. debugging the case where you forget the nul, and overwrite random storage). And they're less efficient in many cases. (E.g. suppose I want to allocate a string on the heap, and assign it the value of X concatenated with Y. With nul-term strings, I have to search down the strings twice -- once to find their lengths, whereas with Ada strings, the length is determined in constant time.) - Bob