[antlr-interest] In c#, how to override a vaiable in a subclass

Martin Probst mail at martin-probst.com
Tue Mar 28 03:45:20 PST 2006


I think what you're trying to do is highly deprecated/considered
harmful, that's why it's rather difficult in programming languages. If
you have a field 'v' that sometimes is of type string and sometimes of
type integer, what is the relation between the two values that justifies
them to have the same name?

Why do you have to declare it in a top level class if you cannot use it
in there, because you don't have a clue about it's type?


More information about the antlr-interest mailing list