Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
January 04, 2011 [Issue 5410] New: Variant.convertsTo(const(char)[]) seems broke | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from Adam D. Ruppe <destructionator@gmail.com> 2011-01-04 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: ------- |
January 09, 2011 [Issue 5410] Variant.convertsTo(const(char)[]) seems broke | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | 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: ------- |
April 22, 2012 [Issue 5410] Variant.convertsTo(const(char)[]) seems broke | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | 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 --- Comment #1 from SomeDude <lovelydear@mailmetrash.com> 2012-04-22 09:48:40 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: ------- |
February 09, 2013 [Issue 5410] Variant.convertsTo(const(char)[]) seems broke | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | 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 --- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-09 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: ------- |
February 26, 2013 [Issue 5410] Variant.convertsTo(const(char)[]) seems broke | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | http://d.puremagic.com/issues/show_bug.cgi?id=5410 --- Comment #3 from Andrei Alexandrescu <andrei@erdani.com> 2013-02-26 08:04:54 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: ------- |
October 24, 2013 [Issue 5410] Variant.convertsTo(const(char)[]) seems broke | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | http://d.puremagic.com/issues/show_bug.cgi?id=5410 --- Comment #4 from github-bugzilla@puremagic.com 2013-10-24 14:14:33 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/c2c95ca9910fb2eac80af8758ec5f779dd11279b Merge pull request #1165 from andralex/5410 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: ------- |
October 24, 2013 [Issue 5410] Variant.convertsTo(const(char)[]) seems broke | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | 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: ------- |
Copyright © 1999-2021 by the D Language Foundation