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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,9e5c2b01bf17dabb,start X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,c78177ec2e61f4ac X-Google-Attributes: gid103376,public From: Alan Brain Subject: Re: C++ Family of Languages [was :ada and robots] Date: 1997/06/25 Message-ID: <33B1E1E2.31DE@dynamite.com.au>#1/1 X-Deja-AN: 252439761 References: Organization: @Home Reply-To: aebrain@dynamite.com.au Newsgroups: comp.lang.ada,comp.lang.c++ Date: 1997-06-25T00:00:00+00:00 List-Id: Robert Dewar wrote: > > Brian said > > < a long time. Certainly if I had my druthers, there would be little new C++ > << > > I don't understand the "family of languages" reference here. Anyone who's tried porting large amounts of code in C++ will know what's meant. Case in point: I'm currently porting a large quantity of CodeWarrior C++ to VisualC++ 5.0. One example: for (int i = 0 ; i < 10 ; i ++) { //some statements } for (int i = 0 ; i < 20 ; i ++) { //some more statements } On CodeWarrior, fine. But Visual C++ 5 barfs at the re-definition of the (local) loop variable i. Yes, CodeWarrior (and I believe the draft ANSI standard) has i being local within the loop, whereas VC++5 has strictly only things within {} being local. OTOH for CodeWarrior 10(?) I need to #include Whereas VC++5 (and the ANSI draft) caters for type BOOLEAN, so barfs if you include it. For strings, of course, I need to #include for both, but also, for CWarrior I can then use string ThisString; whereas in VC++5 I need to typedef std::basic_string string or similar before I can declare a variable of type string. This isn't too bad: it's just an instantiation of a generic string for characters. Too bad use of templates in C++ is often considered Highly Advanced. These are not "old" compilers. They are at least industry standard, and are probably ahead of the average. Every day, I miss Ada-83 more and more and more... Except for Thursdays, when I teach Ada at ADFA. I took the liberty of X-posting to comp.lang.c++ so you might get a few more remarks on this thread. -- aebrain@dynamite.com.au <> <> How doth the little Crocodile | Alan & Carmel Brain| xxxxx Improve his shining tail? | Canberra Australia | xxxxxHxHxxxxxx _MMMMMMMMM_MMMMMMMMM 100026.2014 compuserve o OO*O^^^^O*OO o oo oo oo oo By pulling MAERKLIN Wagons, in 1/220 Scale See http://www.z-world.com/graphics/z/master/8856.gif for picture