[antlr-interest] Re: Case of getType() with C# output
micheal_jor
open.zone at virgin.net
Sun Mar 9 21:25:22 PST 2003
--- In antlr-interest at yahoogroups.com, "James Park" <jpark at c...>
wrote:
> The antlr C# assembly seems to define AST.getType with the case
> GetType() instead of getType().
Actually GetType() is already defined for every object in C#. All
objects derived directly or indirectly from System.Object. GetType()
is inherited from System.Object.
Java's AST.getType()/setType() are mapped to the AST.Type property in
C#. AST.getType() isn't defined because CLS compliance forbids having
GetType() and getType() on the same object.
> Yet, it also defines AST.setType() and AST.getText().
>
> Is there a reason for this inconsistency?
AST.setType() is supported for "cross-language backwards
consistency" ;-)
AST.getText()/setText() are fully supported.
Cheers,
Micheal
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list