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.
Fixed dmd 2.033