ubyte[] -> immutable(ubyte)[]

Kagamin spam at here.lot
Thu Sep 9 23:31:09 PDT 2010


Andrej Mitrovic Wrote:

>     foreach (ubyte[] buffer; stdin.byChunk(bufferSize))
>     {
>         immutable(ubyte)[] copy_buffer;
>         copy(buffer, copy_buffer);
>         
>         writeln(copy_buffer);  // writes nothing
> 
>         send(tid, copy_buffer);
>     }

Isn't destination the left argument?
Why you don't use send(tid, buffer.idup);
?


More information about the Digitalmars-d-learn mailing list