no [] operator overload for type Chunks!(char[])

Malte no at valid.mail
Wed May 30 21:19:56 UTC 2018

Why does this code complain at the last line about a missing [] 
operator overload?

auto buffer = new char[6];
auto chunked = buffer.chunks(3);
chunked[1][2] = '!';

Same happens with wchar.
Dchar and byte work as expected.

More information about the Digitalmars-d-learn mailing list