Challenge

anonymous via Digitalmars-d digitalmars-d at puremagic.com
Sun Aug 30 08:20:49 PDT 2015


On Sunday 30 August 2015 16:43, rsw0x wrote:

> Is there any reason that closure in this particular example can't
> be created on the stack? Seems a bit weird.

It may be possible to store it on the stack somehow, or as part of the map 
struct. I don't know.

The point is, that's not what happens. It goes on the GC heap, breaking 
@nogc.



More information about the Digitalmars-d mailing list