What is the structure of D arrays?

Ashok achandra at netnews.nl
Sat Dec 26 23:12:00 PST 2009


"Don" <nospam at nospam.com> wrote in message 
news:hh6v0a$1bc4$1 at digitalmars.com...
> Ashok wrote:
>> Don wrote:
>>> Ashok wrote:
>>>> Sean Kelly wrote:
>>>>> Ashok Wrote:
>>>>>
>>>>>> Actually, I have another question before the one in the subject
>>>>>> line: How many types of arrays are there in D? THEN, I would like
>>>>>> to know their layout/structure in memory.
>>>>> There's one type, and its structure is described in the ABI:
>>>>>
>>>>> http://www.digitalmars.com/d/2.0/abi.html
>>>> How wide is length? And really? There's only one array type? D's age
>>>> showing!
>>> Dynamic arrays are internally just a pointer and a length, so there
>>> only needs to be one structure.
>>
>> I rest my case.
>
> I'm intrigued. What would you expect?
>
I was being facetious. I got what I expected. I can't address your fantasy. 





More information about the Digitalmars-d mailing list