digitalmars.D.bugs - [Issue 5410] New: Variant.convertsTo(const(char)[]) seems broke
- d-bugmail puremagic.com (21/21) Jan 04 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5410
- d-bugmail puremagic.com (10/10) Jan 09 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5410
- d-bugmail puremagic.com (20/20) Apr 22 2012 http://d.puremagic.com/issues/show_bug.cgi?id=5410
- d-bugmail puremagic.com (12/12) Feb 09 2013 http://d.puremagic.com/issues/show_bug.cgi?id=5410
- d-bugmail puremagic.com (6/6) Feb 26 2013 http://d.puremagic.com/issues/show_bug.cgi?id=5410
- d-bugmail puremagic.com (9/9) Oct 24 2013 http://d.puremagic.com/issues/show_bug.cgi?id=5410
- d-bugmail puremagic.com (9/9) Oct 24 2013 http://d.puremagic.com/issues/show_bug.cgi?id=5410
http://d.puremagic.com/issues/show_bug.cgi?id=5410 Summary: Variant.convertsTo(const(char)[]) seems broke Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: destructionator gmail.com 08:58:05 PST --- Variant a; a = "10"; assert(a.convertsTo!(const(char)[])); // fails but should work This breaks coercing strings to numeric types too, since this is the test inside the coerce function. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 04 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5410 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |andrei metalanguage.com AssignedTo|nobody puremagic.com |andrei metalanguage.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 09 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5410 SomeDude <lovelydear mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear mailmetrash.com Platform|Other |All OS/Version|Linux |All PDT --- Also fails on 2.059 win32. For convenience: import std.stdio; import std.variant, std.conv; void main(){ Variant a; a = "10"; assert(a.convertsTo!(const(char)[])); // fails but should work } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 22 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5410 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich gmail.com 13:20:51 PST --- ImplicitConversionTargets in std.traits is to blame. That template is probably missing more though, for example I don't see 'wchar[] -> const(wchar)[]' anywhere. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 09 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5410 PST --- https://github.com/D-Programming-Language/phobos/pull/1165 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 26 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5410 Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/c2c95ca9910fb2eac80af8758ec5f779dd11279b Fix Issue 5410 - Variant.convertsTo(const(char)[]) seems broke -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 24 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5410 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 24 2013