[Issue 3821] writeln doesn't detect recursive data structures yet

2019-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3821 --- Comment #11 from Steven Schveighoffer --- It's possible, but at a huge cost. Just to see if you are printing infinitely recursively, something that you may not expect to actually work. And also impossible to know the state of the object, it could

[Issue 3821] writeln doesn't detect recursive data structures yet

2019-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3821 --- Comment #10 from berni44 --- (In reply to Steven Schveighoffer from comment #9) > (In reply to bearophile_hugs from comment #0) > > In Python the print is able to detect loops: > > Python is a managed language, and has the possibility of doing

[Issue 3821] writeln doesn't detect recursive data structures yet

2019-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3821 Steven Schveighoffer changed: What|Removed |Added Status|REOPENED|RESOLVED CC|

[Issue 3821] writeln doesn't detect recursive data structures yet

2019-12-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3821 --- Comment #8 from berni44 --- (In reply to safety0ff.bugz from comment #6) > This looks like a Variant toString bug rather than a writeln bug. I don't think so, because it's not limited to Variant. Every recursive data structure cannot be printed.

[Issue 3821] writeln doesn't detect recursive data structures yet

2019-12-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3821 --- Comment #7 from berni44 --- Meanwhile I get a segmentation fault. Doesn't make it better though... --

[Issue 3821] writeln doesn't detect recursive data structures yet

2019-12-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3821 berni44 changed: What|Removed |Added CC||bugzi...@d-ecke.de OS|Windows

[Issue 3821] writeln doesn't detect recursive data structures yet

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3821 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.040 |D2 --

[Issue 3821] writeln doesn't detect recursive data structures yet

2014-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3821 --- Comment #5 from bearophile_h...@eml.cc --- (In reply to Andrej Mitrovic from comment #1) Got a newer example maybe? std.boxer is long gone. Is this good enough? void main() { import std.stdio, std.variant; auto a = new Variant[1];

[Issue 3821] writeln doesn't detect recursive data structures yet

2014-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3821 bearophile_h...@eml.cc changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID

[Issue 3821] writeln doesn't detect recursive data structures yet

2014-07-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3821 safety0ff.bugz safety0ff.b...@gmail.com changed: What|Removed |Added CC|

[Issue 3821] writeln doesn't detect recursive data structures yet

2014-07-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3821 Justin Whear jus...@economicmodeling.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 3821] writeln doesn't detect recursive data structures yet

2012-12-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3821 --- Comment #2 from Andrej Mitrovic andrej.mitrov...@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()); } }

[Issue 3821] writeln doesn't detect recursive data structures yet

2012-12-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3821 --- Comment #3 from bearophile_h...@eml.cc 2012-12-20 15:56:54 PST --- (In reply to comment #2) But why is this set for Druntime and to Sean Kelly? This is a Phobos issue imo. Maybe I was ignorant. Fixed. -- Configure issuemail: