Set null as function array parameter

Oleg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 12 08:53:59 PST 2015


On Monday, 12 January 2015 at 16:44:42 UTC, ketmar via 
Digitalmars-d-learn wrote:
> nope, it means exactly what is written there. except that 
> dynamic array
> is represented by struct like this:
>
>   struct {
>     void *dataptr;
>     size_t itemCount;
>   }
>
> this is what D calls "dynamic array", and this is what passed 
> by value:
> struct with two members. dynamic array contents are *not* a 
> part of
> "dynamic array type".
>
> yes, this is confusing.

Thank you.


More information about the Digitalmars-d-learn mailing list