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 wh
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 changed:
What|Removed |Added
Version|2.040 |D2
--
https://issues.dlang.org/show_bug.cgi?id=3821
safety0ff.bugz changed:
What|Removed |Added
CC||safety0ff.b...@gmail.com
--- Comment #6 from
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
Justin Whear changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
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: http://
http://d.puremagic.com/issues/show_bug.cgi?id=3821
--- Comment #2 from Andrej Mitrovic 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;
overri
http://d.puremagic.com/issues/show_bug.cgi?id=3821
Andrej Mitrovic changed:
What|Removed |Added
CC||andrej.mitrov...@gmail.com
--- Comme
14 matches
Mail list logo