Returning dynamic array from the function

bearophile bearophileHUGS at lycos.com
Wed Oct 17 13:38:03 PDT 2012


Jonathan M Davis:

>there's no way for the compiler to always catch it for you.<

I think there are type systems able to always catch this kind of 
bug (conservative region analysis, it means that if it can't 
demonstrate the memory doesn't escape, it prudently refuses the 
code). D doesn't have such kind of type system.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list