Operate with void[]
Adam D. Ruppe
destructionator at gmail.com
Tue Jan 14 20:04:04 PST 2014
On Wednesday, 15 January 2014 at 03:53:18 UTC, Sergey wrote:
> str2[0] = replace(pert, [9], [9,9,10]); // ?????????
Try changing that line to this:
pert = replace(pert, cast(ubyte[]) [9], cast(ubyte[])
[9,9,10]);
There's no str2 variable, so I assigned to pert instead. I casted
the other arrays to ubyte[] because otherwise it throws all kinds
of errors about ints instead of bytes (number literals are ints
and the replace function is a bit picky)
More information about the Digitalmars-d
mailing list