[Issue 3821] writeln doesn't detect recursive data structures yet
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 20 15:46:14 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3821
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-12-20 15:46:13 PST ---
Simple example:
import std.stdio;
import std.string;
class A
{
B b;
override string toString() { return format("A(%s)", b.toString()); }
}
class B
{
A a;
override string toString() { return format("B(%s)", a.toString()); }
}
void main() {
auto a = new A;
auto b = new B;
a.b = b;
b.a = a;
writeln(a);
}
But why is this set for Druntime and to Sean Kelly? This is a Phobos issue imo.
--
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