[Issue 9326] writeln to simply show pointed data

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 16 05:11:47 PST 2013


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



--- Comment #5 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2013-01-16 05:11:45 PST ---
(In reply to comment #4)
> > If you think this enhancement request is not a good idea, you must explain why.
> > I have explained why it's a handy thing to have.
> > 
> > (The implementation of this feature requires the formatting function to keep a
> > set of already seen pointers. For simplicity I think a built-in associative
> > array of void* is enough).
> > 

BTW if writeln starts allocating GC memory like that we'll have a revolt among 
users. The special case of debugging output doesn't look good enough to
compromise the basic "no garabage involved" guarantee.

Plus debug prints inside of a finalizer risk killing a program with current GC.
This situation with GC should/might improve in the future though but it's just
another problem to be aware of.

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