ubyte[] -> immutable(ubyte)[]

Andrej Mitrovic test at test.test
Fri Sep 10 08:13:51 PDT 2010


bearophile Wrote:

> Andrej Mitrovic:
> >  I'm trying to use algorithm.copy, but I get back nothing in the copy buffer. How do I to copy an array of ubyte's?
> 
> a[] = b[];
> 
> Bye,
> bearophile

No, that wouldn't work. It complains about conversion from mutable to immutable. idup works fine though.


More information about the Digitalmars-d-learn mailing list