[Issue 22162] New: conv.to doesn't handle strings to user defined arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 30 20:54:30 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22162
Issue ID: 22162
Summary: conv.to doesn't handle strings to user defined arrays
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: crazymonkyyy at gmail.com
Created attachment 1825
--> https://issues.dlang.org/attachment.cgi?id=1825&action=edit
You must enter a Description for this attachment.
"[1,2]".to!(myint[]) or whatever variant fails
And preempting the argument, "toString of arrays produces whitespace while
conv.to has been designed to not take white of int cause such and such bug",
you cant exactly add a "to(T)(string s) if(isArray!T)" yourself as it will
cause scoping issues; if you change "to_" to "to" in the file I provided it
produces errors of otherwise working concept code
--
More information about the Digitalmars-d-bugs
mailing list