templated lambda with {} cause GC

Paul Backus snarwin at gmail.com
Fri Aug 10 11:53:52 UTC 2018


On Friday, 10 August 2018 at 11:10:55 UTC, learnfirst1 wrote:
> Still,  if my first example is use GC, why dmd not throw error 
> at compile time, instead at link time report symbols is 
> missing.   Is this a bug ?

If you make your main function @nogc, you will get a compile-time 
error.


More information about the Digitalmars-d-learn mailing list