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
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
https://issues.dlang.org/show_bug.cgi?id=3821
Steven Schveighoffer changed:
What|Removed |Added
Status|REOPENED|RESOLVED
CC|
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.
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...
--
https://issues.dlang.org/show_bug.cgi?id=3821
berni44 changed:
What|Removed |Added
CC||bugzi...@d-ecke.de
OS|Windows
https://issues.dlang.org/show_bug.cgi?id=3821
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Version|2.040 |D2
--
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];
https://issues.dlang.org/show_bug.cgi?id=3821
bearophile_h...@eml.cc changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|INVALID
https://issues.dlang.org/show_bug.cgi?id=3821
safety0ff.bugz safety0ff.b...@gmail.com changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=3821
Justin Whear jus...@economicmodeling.com changed:
What|Removed |Added
Status|NEW |RESOLVED
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()); }
}
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:
13 matches
Mail list logo