[antlr-interest] Remote Debugging with C#
Gavin Lambert
antlr at mirality.co.nz
Tue Jul 3 14:13:12 PDT 2007
At 05:11 4/07/2007, Johannes Luber wrote:
>>> protected ITreeAdaptor adaptor = new DebugTreeAdaptor(dbg,
>>> new CommonTreeAdaptor());
>>
>> The missing context may tell another story but, I don't see
>> *anything* wrong with this line.
>
>The location of dbg. dbg is a member of DebugParser, the parent
>parent class. And in Ecma 334 is written:
>
>"A variable initializer for an instance field cannot reference
the
>instance being created. Thus, it is a compile-time error to
>reference *this* in a variable initializer, as it is a compile-
>time error for a variable initializer to reference any instance
>member through a simple-name."
>
>The simple-name part is violated.
That doesn't seem to prohibit base-class fields, though. They
should have already been constructed by the time derived class
initializers are called.
I guess it's a matter of interpretation, though :)
More information about the antlr-interest
mailing list