[antlr-interest] Value types - can't be set to null in C#
Cameron Esfahani
dirty at apple.com
Mon Jan 7 18:06:50 PST 2008
I remember seeing a similar problem with typedef-ed structures in the
C backend. It was initializing them to NULL and my compiler didn't
like that...
On Jan 7, 2008, at 4:50 PM, Terence Parr wrote:
>
> On Jan 7, 2008, at 3:38 PM, Johannes Luber wrote:
>
>> The default is, as you see, null. Adding new types to this
>> structure is
>> an open-ended task. So we'd need a new way to tell ANTLR, that
>> there is
>> a special case. Maybe "prog: dt(DateTime.MinValue)=datetime"? Ter?
>
> I'd rather not add syntax for this. If it's not a built-in type,
> all defaults can be null for objects, right?
>
> Ter
Cameron Esfahani
dirty at apple.com
"It is the spirit and not the form of law that keeps justice alive."
Earl Warren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080107/01bd4ba3/attachment.html
More information about the antlr-interest
mailing list