digitalmars.D.bugs - [Issue 22162] New: conv.to doesn't handle strings to user defined
- d-bugmail puremagic.com (23/23) Jul 30 2021 https://issues.dlang.org/show_bug.cgi?id=22162
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 puremagic.com Reporter: crazymonkyyy 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 --
Jul 30 2021