[antlr-interest] C# TARGET ANNOUNCEMENTS

Gavin Lambert antlr at mirality.co.nz
Sat Apr 12 06:06:50 PDT 2008


At 14:27 12/04/2008, Micheal J wrote:
 >Didn't think the default ctor was invoked.  Thought
 >default() just initialized value-types to 0 and ref-types to
 >null.

It's the same thing.  The default constructor of a value type 
simply invokes default(x) on all its member fields (ending up 
zero-or-null-initialising them).  And since you can't redefine the 
default constructor to do anything else, the functionality is 
always equivalent.



More information about the antlr-interest mailing list