.ptr and .value

Robert Clipsham robert at octarineparrot.com
Wed May 5 16:27:33 PDT 2010


On 06/05/10 00:11, bearophile wrote:
> Robert Clipsham:
>
>> .ptr is only available for arrays.
>
> And arr.ptr returns the pointer to the start of the memory that
> contains the array data. While&arr is the pointer to the struct that
> contains the pointer and the length.

Thanks for adding this, I probably should have mentioned it :)

> On the other hand I think the Pascal pointer syntax is better :-)

I've never used Pascal, so I wouldn't know :)

> Bye, bearophile



More information about the Digitalmars-d-learn mailing list