At 04:29 31/03/2009, Johannes Luber wrote:
 >C# has solved the problem with using the default keyword
 >(which initializes structs with the default constructor,
 >which is the 0-bit pattern, and for references simply null)
 >but I don't think that C(++) has an equivalent.

IIRC there's something in Boost that's the equivalent of the C# 
construct.  But of course that's C++ only.

In C you can initialise any basic variable with 0, though (the 
only exceptions being bare structures and arrays).


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to