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: f5d71,d275ffeffdf83655 X-Google-Attributes: gidf5d71,public X-Google-Thread: 103376,d275ffeffdf83655 X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,d275ffeffdf83655 X-Google-Attributes: gid109fba,public From: Geoff Bull Subject: Re: Ada vs C++ vs Java Date: 1999/02/09 Message-ID: <36C00B2D.596D5CDE@acenet.com.au>#1/1 X-Deja-AN: 442367230 Content-Transfer-Encoding: 7bit References: <369C1F31.AE5AF7EF@concentric.net> <369DDDC3.FDE09999@sea.ericsson.se> <369e309a.32671759@news.demon.co.uk> <77ledn$eu7$1@remarQ.com> <77pnqc$cgi$1@newnews.global.net.uk> <8p64spq5lo5.fsf@Eng.Sun.COM> <77t3ld$nou$1@nnrp1.dejanews.com> <79ce4s$lfq$1@nnrp1.dejanews.com> <79chc7$ko6@drn.newsguy.com> <36BAF083.6C413B3D@acenet.com.au> <79evj0$49g@drn.newsguy.com> <36BECC3E.E5D1723F@acenet.com.au> <79mkqd$7to@drn.newsguy.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@telstra.net X-Trace: nswpull.telstra.net 918555567 203.35.118.1 (Tue, 09 Feb 1999 21:19:27 EST) Organization: Telstra Big Pond Direct MIME-Version: 1.0 NNTP-Posting-Date: Tue, 09 Feb 1999 21:19:27 EST Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.java Date: 1999-02-09T00:00:00+00:00 List-Id: mike wrote: > > In article <36BECC3E.E5D1723F@acenet.com.au>, Geoff says... > > > > >> > >> anyone nowadays still doing such silly errors as falling of the end > >> of an array because they dont use standard STL containers, do not deserve > >> to be programming in any language. I better look for another career :-( > > > >Are you saying that when I want an array of objects > >that I should use an STL abstraction rather than the languages > >built in array type?? > > > > Yes. offcourse. > > Just like only a fool (or a bignner) would use a null terminated char > array to hold a string, when the C++ standard library comes with a > build-in string class for doing that. Only a fool (or a bignner) would use C++ for a large application where safety and long term maintenace are major issues. > > >This is ridiculous! > > It is not. You are given a safe, tested, and higher level and easier to Is so. > use containers such as a vector or string, so use them. if you insist > on using more primitive data types (which using could result in more > user errors), then you got only yourself to blame. > > C++ standard library provides one with tools to use the langauge in safe > manner. get used to using it. > If you want to call C++ a safe language you need a means to able to have a means of having the compiler reject all thos unsafe arrays, pointers, casts, unions, varargs, implicit type conversion, and anything that is likely to cause major surprises.