On Friday, 27 July 2012 at 02:13:19 UTC, Jonathan M Davis wrote:

It's inherently unsafe. What happens if you returned a reference to foo from someFunc?

Good answer. I didn't think of that.

scope on local variables is going away for pretty much the same reason that delete is.

Delete is going away too? Damn. Then again, I guess I'm still thinking in C++ terms. I need to stop doing that.

I'm having difficulty thinking in terms of D. It looks like C++, it compiles to native code (unlike .NET), therefore I need to manage memory myself... ;)

I'll get the hang of it eventually.

Reply via email to