D gc on local objects
John Colvin via Digitalmars-d
digitalmars-d at puremagic.com
Wed Apr 16 10:14:54 PDT 2014
On Wednesday, 16 April 2014 at 16:51:57 UTC, Adam D. Ruppe wrote:
> This is one of the things the `scope` storage class on local
> variables can do, but since it isn't implemented properly, it
> is not memory safe and thus its usage is deprecated.
>
> I really really really want to see scope be fully implemented,
> including not allowing a reference to the variable to escape
> the scope, but this is easier said than done.
I would love to have a "scope" that works properly, with or
without blade-guards to stop me chopping off my hands when the
function returns.
More information about the Digitalmars-d
mailing list