Compiler analysis of single-use types? Escape analysis of types?

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 18 00:04:41 PDT 2016


On 2016-08-18 03:21, Yuxuan Shui wrote:

> I wish we could have something like "scoped" delegates...

You mean:

void foo(scope void delegate() dg);

Or:

void bar(void delegate() dg);

scope void delegate() a = {};
bar(a);

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list