MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4466
Loc: Melbourne, Australia
Send PM
Re: MSVC sucks so bad!
03/15/09 06:29 AM


> How? C++ vs C# ?

OK, compared to C# here are some advantages of Managed C++:

  • Interact with unmanaged objects, functions and structures directly
  • Distinct syntax for unmanaged pointer and managed reference
  • Indexer property syntax
  • Distinct syntax for scope resolution, member access and access through reference ("::", "." and "->" respectively, whereas C# uses "." for all three)
  • Easy to explicitly box value types when you want reference semantics
  • Separate declaration and implementation
  • Split implementation while keeping declaration in one place (C# partial classes split both declaration and implementation, leading to a mess)
  • Give access specifier once and then declare many members, rather than having to put access specifier on each one
  • Full C99 preprocessor and macro metalanguage
  • Full C++98 template metalanguage
  • Separate RAII destructor and GC finaliser
  • Visual Studio isn't as evil about reformatting your C++ code as it is with C#

Enough reasons for you? About the only disadvantage is that it doesn't integrate as well with the form designer.







Entire thread
Subject Posted by Posted on
* MSVC sucks so bad! Vas Crabb 03/02/09 01:44 PM
. * Re: MSVC sucks so bad! keshbach1  03/04/09 10:26 PM
. * Re: MSVC sucks so bad! Vas Crabb  03/04/09 11:39 PM
. * Re: MSVC sucks so bad! FMecha  03/15/09 06:00 AM
. * Re: MSVC sucks so bad! Vas Crabb  03/15/09 06:29 AM

Extra information Permissions
Moderator:  Pi 
1 registered and 48 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4113