Allocating large 2D array in D
    Denis Shelomovskij 
    verylonglogin.reg at gmail.com
       
    Thu Feb  7 21:51:54 PST 2013
    
    
  
04.02.2013 20:54, bearophile пишет:
> Steven Schveighoffer:
>
>> Wow, this is something I didn't know was possible.  Very useful!
>
> It's it cute when you use a language almost daily for few years,
> and then you see a new way to allocate built-in arrays? :-)
Just a small obvious note that this trick will work for every 
n-dimentional array.
And it's not cute when there is a sliceable
multidimensional rectangular array implementation for a few years and 
almost nobody knows about it.
http://denis-sh.github.com/phobos-additions/unstd.multidimensionalarray.html
 From examples:
---
// The head array can be dynamic
int[4][3][] darr3 = sarr3[];
auto matrix31 = mdimArray(darr3); // Works like previous one
---
-- 
Денис В. Шеломовский
Denis V. Shelomovskij
    
    
More information about the Digitalmars-d-learn
mailing list