How to use sprintf

Daniel Gibson metalcaedes at gmail.com
Tue Apr 26 06:21:11 PDT 2011


Am 26.04.2011 15:11, schrieb Alexander:
> After all, array is a pointer (=reference), and arrays are not structs (=values), so I see no reason to disallow this, to be honest.
> 

No, in D arrays are not just pointers. It's indeed a struct that
contains the length (arr.length) and the pointer (arr.ptr).
This makes arrays in D a lot safer and also easier to use than in C.

Cheers,
- Daniel


More information about the Digitalmars-d mailing list