TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: DAN MCGREGOR
from: SUNIR SHAH
date: 1997-07-17 23:15:00
subject: Sunir ventures into C++

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.