PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Computer Folklore     

Microsoft wants C++ to replace C, which is fine with me


VPN Service Provider

Hi Spooky ( and Arkady Duntov ), Re: Why I use MSC++ instead of MSC,

I think Microsoft wants C++ to replace C, which is fine with me, But that doesn't mean that I'll ever use cout or the STL... both crap.

Microsoft rejected C99, which would allow .C files to declare variables inbetween statements, and that feature was so important to me that I switched to C++.

Besides & referencing, which I use liberally, I also overload functions:

#define IncXx( Xx ) Xx##P & Inc ( Xx##T & Xx, int N ) { int E = Xx.EE - Xx.BB, EE = E, P = Xx.PP - Xx.BB - ! Xx.BB ; Xx.BB = ( Xx##A ) realloc( Xx.BB, ( E = ER( 9, P * 1.5 ) ) * SzPtr ); Xx.EE = Xx.BB + E ; Xx.PP = Xx.BB + P ; memset( Xx.BB + EE, 0, ( E - EE ) * SzPtr ); return * Xx.PP ; } Xx##P & Inc ( Xx##T & Xx ) { return Inc ( Xx, 1 ) ; }

typedef unsigned char uchar ; typedef unsigned short ushort ; typedef unsigned long ulong ; typedef unsigned int uint; typedef unsigned int64 u64 ; typedef LARGEINTEGER Quad ; typedef HBITMAP BMT ; typedef ulong SNTPT 12 ;

uint M, C ; ulong C2 ; int rv ; const int SzPtr = sizeof( char * ) ;

typedef char * LnP ; typedef LnP * LnA ; struct LnT { LnA BB, PP, EE ; };

Microsoft wants C++ to replace C, which is fine with me. 14062
In comp.os.linux.advocacy, JeffRelf wrote on 12 Apr 2005 03:13:11 GMT C is a language. MSC is...

enum { NoProtocol, Modem, SNTP, POP3, POP3SSL, SMTPAUTH, NNTP }; struct ServT { LnP Nick ; int Protocol ; LnP Name, User, Pbutt ; int Port ; ulong IP ; }; typedef ServT * SrP ; typedef SrP * SrA ; struct SrT { SrA BB, PP, EE ; };

struct ToolbarT { SrP Serv ; LnP Nick, Handler, ServNick, Newsgroup ; int MaxUnread, MaxReadToFrom, MaxReadNotToFrom ; }; typedef ToolbarT * TbP ; typedef TbP * TbA ; struct TbT { TbA BB, PP, EE ; };

struct HeaderT { LnP NG, MID, 1, 2, 3, 4, 5, breastle, NameDatePathReader ; }; struct ListT { int HasH, FromTo, Del, Pnts ; HeaderT H ; int Num ; int BodyCnt ; LnA Body ; }; typedef ListT * LsP ; typedef LsP * LsA ; struct LsT { LsA BB, PP, EE ; };

Microsoft wants C++ to replace C, which is fine with me. 14061
In comp.os.linux.advocacy, JeffRelf wrote on 07 Apr 2005 03:20:38 GMT Like this? int main() { return 0; } Or...

LnT Ln ; LsT Ls ; TbT Tb ; SrT Sr ; SrP Serv ;

IncXx( Ln ) IncXx( Ls ) IncXx( Tb ) IncXx( Sr )


Linux | Previous | Next

Microsoft wants C++ to replace C, which is fine with me. 14061

Linux Advocacy Newsgroups

CSE 143 and professor Kelsey both give me points off for using Loop. 14059