www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Is string.ptr a part of the language?

reply =?UTF-8?B?QWxpIMOHZWhyZWxp?= <acehreli yahoo.com> writes:
I've seen people access string.ptr in code examples. Does that member 
exist and publicly accessible? How about the internals of slices, 
associative arrays, and others?

I am not planning or need to use them. I am just trying to determine how 
much of the internals are a part of the D language.

Thank you,
Ali
Mar 31 2010
parent KennyTM~ <kennytm gmail.com> writes:
On Apr 1, 10 13:20, Ali Çehreli wrote:
 I've seen people access string.ptr in code examples. Does that member
 exist and publicly accessible? How about the internals of slices,
 associative arrays, and others?

 I am not planning or need to use them. I am just trying to determine how
 much of the internals are a part of the D language.

 Thank you,
 Ali

string is just an alias of invariant(char)[], and dynamic arrays do have the .ptr property (http://www.digitalmars.com/d/2.0/arrays.html).
Mar 31 2010