Managed C ++: another vb, or vb.net, or wherever

xiaoxiao2021-03-06  118

Managed C : Another VB, or VB.NET, or WHATEVER FACT: The conversion from Java to C # is much easier than from VB to VB.NET.

Since VB.NET puts VB's syntax, VB programmers have been trying to find a question: "Is VB Dead?". Managed C will experience a similar grammar change process in Visual Studio 2005 (Whidbey): all __keyword (__ kindword (__nogc, etc) will be abolished, replaced by some new keywords and grammar. The following is from Stanley Lippman (The Author Of "Inside C Object Model" and "C Primer", there are two books of Mr. Houjie, translation of the code before and after the code of the BLOG).

// ORIGINAL LANGUAGE SYNTAX PUBLIC __GC __SEALED __ABSTRACT CLASS State {public: static state (); static string * version (); private: static string * ms_version;};

// Revised Language Syntax Public Ref Class State Abstract Sealed {public: static state (); static string ^ version (); private: static bool ms_inparam;

The new syntax is clearly clean and tidy (except the "cover" reference ^), but such a large-scale grammar change, it has to worry about Managed C will not repeat the mistakes of VB.NET - don't worry C destiny, C programmers (including me) probably the most stubborn group on this earth: "After a big disaster, only cockroaches left on this earth, mouse - there are C programmers.;)"

转载请注明原文地址:https://www.9cbs.com/read-100946.html

New Post(0)