why no implicit convertion?

Tomek Sowiński just at ask.me
Wed Nov 17 13:53:12 PST 2010


Dnia 17-11-2010 o 22:38:50 Jonathan M Davis <jmdavisProg at gmx.com>  
napisał(a):

> There is no way (as far as I know) to
> convert that to a dynamic array of dynamic arrays. As such, the compiler  
> can't
> do it implicitly or explicitly. You can probably create a dynamic array  
> of
> dynamic arrays and assign each of the internal arrays to to each of the  
> internal
> arrays of b, but there's no direct way to do it.

For rectangular arrays you can create a static array of dynamic arrays and  
get away with no heap alloc (see my other post).

-- 
Tomek


More information about the Digitalmars-d-learn mailing list