Cannot cast void* to arrays..?

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Feb 24 12:20:32 PST 2012


On Fri, Feb 24, 2012 at 11:56:18AM -0800, Ali Çehreli wrote:
[...]
>     char[1] a;
>     auto c = a.ptr[0..a.length];
[...]

Hey, that's an awesome way to implement copy-on-write static arrays!

I'll have to use that sometime. :)


T

-- 
Sometimes the best solution to morale problems is just to fire all of
the unhappy people. -- despair.com


More information about the Digitalmars-d-learn mailing list