Proposal 2: Exceptions and @nogc

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 11 04:50:33 PDT 2017


On 2017-04-11 04:11, Meta wrote:

> I don't agree as you have to add `scope` for the class to be allocated
> on the stack.

It's enough to add "scope" when declaring the variable:

scope foo = new Object;

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list