Is there anyway to make opApply @nogc?

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 20 08:27:32 PDT 2016


On Monday, 20 June 2016 at 15:13:53 UTC, Gary Willoughby wrote:
> I think the problem is that the delegate which is required by 
> opApply is allocated using the GC.

make the delegate in opApply scope

int opApply(scope int delegate(whatever) dg)


More information about the Digitalmars-d-learn mailing list