digitalmars.D.bugs - [Issue 11390] New: const(typeof(null)) fails to print correctly
- d-bugmail puremagic.com (34/34) Oct 30 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11390
- d-bugmail puremagic.com (10/10) Oct 30 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11390
- d-bugmail puremagic.com (13/13) Nov 01 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11390
- d-bugmail puremagic.com (10/10) Nov 02 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11390
http://d.puremagic.com/issues/show_bug.cgi?id=11390 Summary: const(typeof(null)) fails to print correctly Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: major Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: simen.kjaras gmail.com PDT --- In the following cases, empty string is returned: import std.conv : to; const(typeof(null)) ctn; immutable(typeof(null)) itn; assert(ctn.to!string == ""); assert(itn.to!string == ""); Also, writeln fails horribly when confronted with a const or immutable typeof null: import std.stdio : writeln; const(typeof(null)) ctn; immutable(typeof(null)) itn; writeln(ctn); writeln(itn); phobos\std\stdio.d(1906): Error: no property 'length' for type 'typeof(null)' phobos\std\stdio.d(1906): Error: no property 'ptr' for type 'typeof(null)' .\foo.d(77): Error: template instance std.stdio.writeln!(typeof(null)) error instantiating See also bug 11226. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 30 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11390 Simen Kjaeraas <simen.kjaras gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull PDT --- https://github.com/D-Programming-Language/phobos/pull/1674 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 30 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11390 Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/0c5a439e934b25986823a682ed53a2273494367a Fix bug 11390 https://github.com/D-Programming-Language/phobos/commit/ac9fcce808f1125ad7c6fe3b639c678c09b9e250 Better fix for bug 11390 :p https://github.com/D-Programming-Language/phobos/commit/9741b28af258a6150ba65e9a1dddc5e7513ce1ff Fix bug 11390 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 01 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11390 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 02 2013