How are 2D static arrays allocated?

Robert Fraser fraserofthenight at gmail.com
Tue Nov 4 00:08:28 PST 2008


Jesse Phillips wrote:
> In C allocating a static 2D array gives a continues chunk of memory. Java 
> creates an array that points to more arrays. Just wondering how D handles 
> this.

The only reason static arrays seem to exist at all (as well as good 
explanation for their incongruity with other types) is C compatibility.


More information about the Digitalmars-d-learn mailing list