To: Dan Mcgregor
Subject: Sunir ventures into C++
DM> I know you from the GAMEDEV and C_ECHO echos :)
Dan Mcgregor... sounds familiar... :_) <-- Sunir with nose punched in.
SS> Yes, I've finally broken down and learnt C++...
DM> Good. In some cases its better (eg GUI's)
That's why I learnt it.
DM> and in some cases its not quite as good. (The classes aren't as fast as
DM> C struct's)
I hate five major things about C++ so far:
/* 1. Passing by reference */
void foo( int& HeyIMagicallyAlterYourVariableWithoutTellingYou )
{
...
/* 2. Declaring data in random places */
int HiIAmRandomlyDeclaredHere;
...
...
HiIAmRandomlyDeclaredHere = ButICannotFindWhereHereIs; // a=b
/* 3. Assembly comments */
/* 4. C-style casts are outlawed as of the latest draft proposal */
long bar;
int baz = (long)bar;
/* 5. Weird new commands and stuff because I hadn't bothered to
** call ANSI to see what they threw in this morning.
*/
CATCH TRY IAMAFISH THESE_ARE_ALL_VALID BECAUSEC++CHANGES EVERYWEEK;
}
SS> 2) Is the icky void main(void) actually allowed in C++? Ugh...
DM> Umm.. I don't think its supported in ANSI C++ however, in
DM> (Borland or Turbo) C++ v3.xx and v.4.xx its allowed.
No surprise. Borland is evil.
SS
--- Maximus 3.01
---------------
* Origin: BitByters BBS, Rockland ON, Can. (613)446-7773 v34, (1:163/215)
|