SS> Dan Mcgregor... sounds familiar... :_) <-- Sunir with nose punched in.
Sunir Shah... I think I've heard of you...
DM> Good. In some cases its better (eg GUI's)
SS> That's why I learnt it.
Thats why I learned it too :) Well actually I learned it before I learned C.
DM> and in some cases its not quite as good. (The
DM> classes aren't as fast as C struct's)
SS> /* 1. Passing by reference */
SS> void foo( int& HeyIMagicallyAlterYourVariableWithoutTellingYou )
It can be avoided.
SS> /* 2. Declaring data in random places */
SS> int HiIAmRandomlyDeclaredHere;
Well C++ allowes it. Its up to the programmer to do it :)
SS> HiIAmRandomlyDeclaredHere = ButICannotFindWhereHereIs; // a=b
SS> /* 3. Assembly comments */
I like them actually...
SS> /* 4. C-style casts are outlawed as of the latest draft proposal */
SS> long bar;
SS> int baz = (long)bar;
Strange. I use type casts all the time. IE:
char *i;
i = (char *) malloc (30 * sizeof (char));
SS> /* 5. Weird new commands and stuff because I hadn't bothered to
SS> ** call ANSI to see what they threw in this morning.
SS> */
SS> CATCH TRY IAMAFISH THESE_ARE_ALL_VALID BECAUSEC++CHANGES EVERYWEEK;
Try and Catch are quite usefule exception handling things...
SS> No surprise. Borland is evil.
Not as evil as Micro-Soft.
--- Maximus 3.01
---------------
* Origin: The Dragons Cave -- 2am - 5am CST (1:140/237.2)
|