On Friday, 16 December 2016 at 08:03:22 UTC, Ali Çehreli wrote:
> shared static this() {
> matrix =
> (cast(immutable(int[width])*)buffer.ptr)[0..height];
>
> // Make sure we did not copy into matrix
> assert(cast(void*)matrix.ptr == cast(void*)buffer.ptr);
> }
>
Thanks Ali, this is neat!!