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



--- Comment #7 from bearophile_h...@eml.cc 2010-11-09 04:45:54 PST ---
(In reply to comment #5)

> You should be able to do printf-style debugging in ANY pure function.

Another simple solution is to add a special pure printf version, that's just a
pure alias of printf:


pure void foo() {
    pureprintf("foo");
}


pureprintf() is not meant for normal output, but just for debugging and the
like. And the person that uses pureprintf() has to remember that it's not
deterministic, its output may appear or not appear.

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

Reply via email to