How does D distnguish managed pointers from raw pointers?

Adam D. Ruppe destructionator at gmail.com
Fri Oct 4 19:08:04 UTC 2019


On Friday, 4 October 2019 at 19:03:14 UTC, Dennis wrote:
> You're right, I'm confused. I recall there was a situation 
> where you had to explicitly slice a static array, but I can't 
> think of it now.

When passing to a range template it is necessary, otherwise the 
template will see it as non-resizable and it will fail the range 
constraint check.

(personally though I like to explicitly slice it all the time 
though, it is more clear and the habit is nice)


More information about the Digitalmars-d-learn mailing list