[antlr-interest] anybody get bitten by ANTLR's AST interface
requirement
Martin Probst
mail at martin-probst.com
Tue Jan 24 01:59:52 PST 2006
In code:
class X { .. }
class Y extends X { .. }
class A {
X foo();
}
class B extends A {
Y foo(); // <-- !!!
}
The class B with the overriding foo() returning Y was not possible
before, and it can really enhance complicated APIs. E.g. if you move
down the API abstraction level you can now have the more concrete
classes also return more concrete types, and that is nice.
Martin
More information about the antlr-interest
mailing list