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

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Oct 3 07:38:41 PDT 2001


on 10/3/01 17:24, Ric Klaren at klaren at cs.utwente.nl wrote:

> Sorry it got snowed under a little...
> 
>>> RefCount nullASt
> 
> I'm not sure why it is used... It looks like they used it to have one null
> pointer refcounted object?
> 
> It's defined in BaseAST with a comment about it being nasty but making
> codegen easier.. It's not something I particularly looked at.
> 
> Some quick browsing in the code indeed seems to indicate that it can go.

> Although maybe there's something subtle with the reference counter,
> although the worst that could happen is that multiple RefAST's exist of a
> null pointer, which should not be that bad.

I don't think we will get any arrows in back, because I use in my project
just 

    SomeObjectCPtr  obj = NULL;

and 

    if( obj == NULL )

everywhere. No problems. At least with my implementation of ref counting via
Sharable class and pointer.

> I may have a closer look/try it out later this week or next week, there are
> not too much occurences of the beast so giving it a spin is not hard.

-- 
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