Question about arrays

Stephen Jones siwenjo at gmail.com
Sat Apr 21 15:05:45 PDT 2012


My C programming lies in cobwebs but from memory an array was a 
pointer to the zeroth index of a set of uniformly sized chunks of 
memory. I am perplexed to find that in D a call to an array (of 
float vertices for example) cannot be accomplished by handing &v 
to functions that need the zeroth index. Is this because D holds 
a pointer to an array object and the zeroth index is accessed 
(via compiler background work) to  &v[0]?


More information about the Digitalmars-d-learn mailing list