String[] pointer to void* and back

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 18 15:07:15 PDT 2014


anonymous:

> Here, the pointer to the stack escapes the function. Don't do 
> that!

Hopefully the D type system will be improved with scoping 
tracking & management, to turn similar operations into 
compilation errors (as in Rust, but perhaps in a less refined 
way).

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list