[antlr-interest] C++ version, == nullAST

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Oct 3 06:30:41 PDT 2001


on 9/29/01 0:25, Ruslan Zasukhin at sunshine at public.kherson.ua wrote:

Hi Ric,

I still did not get answer on this.
Any comments ?

> I also note next issue.
> What sense to have in C++ version special global variable
> 
> RefCount nullASt
> 
> ???
> 
> Later there is many coe that use it for comparison
> 
> if( someAST == nullAST )
> 
> At first I did think this is again, "way of Java"...
> but in Java code I see
> 
> if( someAST == null )
> 
> So I think we must throw out from C++ version this nullAST.
> This make code more clean, more similar to Java version and little faster.
> Really
> 
> if( someAST == nullAST )
> ^^^^^^^^ here work operator that return AST*
> 
> if( someAST == 0 )
> ^^^^ zero overhead.

-- 
Best regards,
Ruslan Zasukhin

-------------------------
Paradigma.

e-mail: ruslan at paradigmasoft.com
web   : http://www.paradigmasoft.com

To subscribe to the Valentina mail list
send a letter to valentina-on at lists.macserve.net



 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list