How does D distnguish managed pointers from raw pointers?

Dennis dkorpel at gmail.com
Fri Oct 4 18:34:40 UTC 2019


On Friday, 4 October 2019 at 18:30:17 UTC, IGotD- wrote:
> What if you pass a static array to a function that expects a 
> dynamic array. Will D automatically create a dynamic array from 
> the static array?

No, you have to append [] to create a slice from the static array.


More information about the Digitalmars-d-learn mailing list