Dynamic memory

Binarydepth via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 28 15:52:30 PDT 2015


On Tuesday, 28 July 2015 at 17:34:46 UTC, Steven Schveighoffer 
wrote:
> On 7/28/15 1:26 PM, Binarydepth wrote:
>> On Tuesday, 28 July 2015 at 17:07:47 UTC, Steven Schveighoffer 
>> wrote:
>>> On 7/28/15 12:59 PM, Binarydepth wrote:
>>
>>> When indexing, it always goes out to in. So nam[0] is the 
>>> first
>>> element of type int[2], and nam[0][0] is the first integer in 
>>> that
>>> first element.
>>
>>
>> I don't get what you mean here. In general I understood that 
>> in D
>> multidimensional arrays are a group of arrays.
>
> What I mean is the first index operation operates on the entire 
> type. The second one operates on the element that the first 
> retrieved, and so on.
>
> -Steve

I'm reading the reference : http://dlang.org/arrays.html

And I'm declaring two dynamic arrays as I understand. What I had 
in mind was declaring a dynamic array of two elements each.


More information about the Digitalmars-d-learn mailing list