arrays && functions && pointers

Jarrett Billingsley kb3ctd2 at yahoo.com
Sun Jun 18 19:24:08 PDT 2006


"MM" <MM_member at pathlink.com> wrote in message 
news:e74tk9$213l$1 at digitaldaemon.com...

> This is not slower? I ask this because this foo will be an excessively 
> used
> function in the game loop ;)

No.  All that's being passed to the function is a pointer to the array data 
and the length.  In C, you see all the pointer mechanics out in the open; in 
D, it's implicit.

> btw. How do I reset all the data of a rectangular array?
> something like:
> tiles[][]=0;





More information about the Digitalmars-d-learn mailing list