Bug 3340 – std.string.split(S1 s, S2 delim) still doesn't work for char[].

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-09-22T10:38:00Z
Last change time
2015-06-09T01:26:47Z
Keywords
patch
Assigned to
andrei
Creator
dsimcha

Comments

Comment #0 by dsimcha — 2009-09-22T10:38:35Z
The following line appears twice in the function: words[wordi] = ""; Since "" is considered immutable, it can't be put in an array of char[]s. This can be fixed by changing this line to: words[wordi] = null; Null is equivalent, for all practical purposes, to "", but is automatically coerced to the right type.
Comment #1 by bugzilla — 2009-10-06T02:23:14Z
Fixed dmd 2.033