Reference counting

Qian Xu quian.xu at stud.tu-ilmenau.de
Mon Mar 2 08:41:23 PST 2009


Hi All,

is it possible to see the reference counting of a char[]?

I have some problems with PullParser (tango). 
I put an assertion here:
-----------------------------------------------------------------------------
        private XmlTokenType doAttributeName()
        {
                auto p = text.point;
                auto q = p;
                auto e = text.end;

                assert (p < e, "No!!! text.point is after text.end!!");
                
                char[] tmp = "";
                while (*q > 63 || text.attributeName[*q])
-----------------------------------------------------------------------------

The assert will be broken 1-2 times, when I run a same test 1000 times.

So I want to know about the inside world of D-Compiler.


Best regards
--Qian Xu


More information about the Digitalmars-d-learn mailing list