www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - What is the structure of D arrays?

reply "Ashok" <achandra netnews.nl> writes:
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. 
Dec 26 2009
parent reply Sean Kelly <sean invisibleduck.org> writes:
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
Dec 26 2009
parent reply "Ashok" <achandra netnews.nl> writes:
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!
Dec 26 2009
parent reply Don <nospam nospam.com> writes:
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.

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.
Dec 26 2009
parent reply "Ashok" <achandra netnews.nl> writes:
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.

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.
Dec 26 2009
parent reply Don <nospam nospam.com> writes:
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.

http://www.digitalmars.com/d/2.0/abi.html

showing!

only needs to be one structure.

I rest my case.

I'm intrigued. What would you expect?
Dec 26 2009
parent reply "Ashok" <achandra netnews.nl> writes:
"Don" <nospam nospam.com> wrote in message 
news:hh6v0a$1bc4$1 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.

http://www.digitalmars.com/d/2.0/abi.html

showing!

only needs to be one structure.

I rest my case.

I'm intrigued. What would you expect?

Dec 26 2009
parent reply downs <default_357-line yahoo.de> writes:
Ashok wrote:
 "Don" <nospam nospam.com> wrote in message 
 news:hh6v0a$1bc4$1 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.

http://www.digitalmars.com/d/2.0/abi.html

showing!

only needs to be one structure.




I have no idea what you're talking about.
Dec 26 2009
parent reply bearophile <bearophileHUGS lycos.com> writes:
downs:
 I have no idea what you're talking about.

The good thing is that in this newsgroup there is only one troll to feed (that keeps changing name), so it's not a big burden :-) Bye, bearophile
Dec 27 2009
next sibling parent Bane <branimir.milosavljevic gmail.com> writes:
bearophile Wrote:

 downs:
 I have no idea what you're talking about.

The good thing is that in this newsgroup there is only one troll to feed (that keeps changing name), so it's not a big burden :-) Bye, bearophile

The one with randomly broken caps-lock? :))
Dec 27 2009
prev sibling next sibling parent "Ashok" <achandra netnews.nl> writes:
As if he was "bad".

"bearophile" <bearophileHUGS lycos.com> wrote in message 
news:hh758p$1qd4$1 digitalmars.com...
 downs:
 I have no idea what you're talking about.

The good thing is that in this newsgroup there is only one troll to feed (that keeps changing name), so it's not a big burden :-) Bye, bearophile

Dec 28 2009
prev sibling parent BCS <none anon.com> writes:
Hello bearophile,

 downs:
 
 I have no idea what you're talking about.
 

feed (that keeps changing name), so it's not a big burden :-) Bye, bearophile

If you can call that a trolling: Troll: what color is the sky? NG: Blue, much of the time. Troll: You are so stupid. NG: ??????
Dec 29 2009