[antlr-interest] Remote Debugging with C#
Gavin Lambert
antlr at mirality.co.nz
Wed Jul 4 04:52:29 PDT 2007
At 10:14 4/07/2007, Johannes Luber wrote:
>If I interpret this correctly, instance field initializers are
>called before the base class is constructed. Meaning that base
>access won't be ever added.
Um, yes, that's true. I suspect I've been wearing my C++ hat too
long :)
And the almighty Reflector agrees as well -- the basic order of
any instance constructor seems to be:
1. initialise local fields
2. call base class constructor (which starts at #1 in the base
class)
3. execute constructor body
Seems like an odd way to do it, actually, but So It Is Written ;)
(Actually that's not quite true. Any constructor that uses a
this(...) reference instead of a base(...) reference [or nothing]
skips #1, so the initialisations are only done once. Which does
make sense.)
More information about the antlr-interest
mailing list