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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,ef0074ec236ba6e3 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,b19fa62fdce575f9 X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,ef0074ec236ba6e3 X-Google-Attributes: gid1014db,public X-Google-Thread: 1108a1,ef0074ec236ba6e3 X-Google-Attributes: gid1108a1,public X-Google-Thread: 108717,ef0074ec236ba6e3 X-Google-Attributes: gid108717,public X-Google-ArrivalTime: 1994-11-23 07:40:34 PST Path: nntp.gmd.de!urmel.informatik.rwth-aachen.de!newsserver.rrzn.uni-hannover.de!aix11.hrz.uni-oldenburg.de!nordwest.germany.eu.net!pophh!Germany.EU.net!howland.reston.ans.net!swrinde!pipex!warwick!not-for-mail From: csusb@csv.warwick.ac.uk (Jules) Newsgroups: comp.lang.ada,comp.lang.c,comp.programming,comp.lang.c++,comp.object Subject: Re: Why don't large companies use Ada? Date: 23 Nov 1994 15:40:34 -0000 Organization: University of Warwick, Coventry, UK Message-ID: <3avnpi$1rf@sage.csv.warwick.ac.uk> References: <3a6oc5$dkh@nntp1.u.washington.edu> <3alh02$rgo@holly.csv.warwick.ac.uk> <3alk8j$ok7@calvin.st-and.ac.uk> NNTP-Posting-Host: sage.csv.warwick.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Xref: nntp.gmd.de comp.lang.ada:16971 comp.lang.c:69788 comp.programming:13083 comp.lang.c++:80364 comp.object:17765 Date: 1994-11-23T15:40:34+00:00 List-Id: In article <3alk8j$ok7@calvin.st-and.ac.uk>, ajry@st-andrews.ac.uk (Alistair James Robert Young) writes: >Hang on... Turbo Pascal does have string operations built in. Unless you're >using another one for your course, of course. Yes - I forgot to mention that, didn't I. I love Turbo Pascal. I hate Pascal in general. >However,Turbo Pascal's strings have one major disadvantage.They are structurd >as [length][string], rather than null-terminated strings, which you need to >pass to Windows functions (as well as OS/2, unix, and just about everything >else). Having to use other functions to convert back and forth is, IMO, a >major pain in the unspecified body part, as well as imposing an overhead on >calling any OS function requiring or returning a string. That's one of the >reasons I moved to C from Pascal in the first place. Using Turbo Pascal 7, there is a unit which allows you to use null terminated strings all the time if you so desire - but the problem is you can't use any of Pascal's nice operators on them, you must use C style function calls to manipulate them. But hey - you lose nothing from working in C. >PS, if you think your Pascal course is bad, pity them at St. Andrews: >s-algol,developed there,only used there, completely useless for any practical >purpose! Is (Standard) Pascal useful for any practical purpose? A language where every time you wish to read a string you must write your own procedure to do it? And all strings are fixed length? A language which does not allow random access to files? I could go on.... -- /* Julian R Hall csusb@csv.warwick.ac.uk Flames should be redirected to /dev/null - I don't know what I'm saying myself so don't expect it to make sense all the time! */