Richard Thrippleton wrote:
Gary R. Van Sickle wrote:
  
Really, it adds that "= NULL" of its own volition?  That sounds like 
a bug. All kinds of C PODs (structs for instance) could be in there, 
none of which could be pointers, and that should then fail on C as 
well as C++.  What version is this?
    
Yeah, I'm pretty mystified by this. I'm definitely not trying to NULL
anything myself. By experimentation, it looks like it _tries_ to do the
right thing for different datatypes e.g. it will 0 an int.
  
See myriad past posts. This is what ANTLR does and it means that when testing return values, you don;t need to explicitly pre-initialize them to check for presence, which would be a pain. Also, see explanation of needing to use pointers to things and t=not things themselves.

Jim

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---



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

Reply via email to