[Issue 6319] Problem with prinft inside debug{} of pure function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 14 17:58:04 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6319



--- Comment #1 from bearophile_hugs at eml.cc 2011-07-14 17:52:52 PDT ---
Until this bug gets fixed, a simple workaround is to just put the if() outside
the debug{}:


import core.stdc.stdio;
void foo() pure {
    if(true)
        debug {
            printf("********");
        }
}
void main() {
    foo();
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list