Bug 22162 – conv.to doesn't handle strings to user defined arrays

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2021-07-30T20:54:30Z
Last change time
2024-12-01T16:39:07Z
Assigned to
No Owner
Creator
crazymonkyyy
Moved to GitHub: phobos#9827 →

Attachments

IDFilenameSummaryContent-TypeSize
1825to.dYou must enter a Description for this attachment.text/x-dsrc546

Comments

Comment #0 by crazymonkyyy — 2021-07-30T20:54:30Z
Created attachment 1825 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
Comment #1 by robert.schadek — 2024-12-01T16:39:07Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9827 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB