closure

This is a terrible workaround for closure bugs in D. When a local is used in a delegate D is supposed to move it to the heap. I haven't seen that happen in all cases so we have this manual workaround.

@trusted
closure
(
Fun
Args...
)
(
Fun fun
,
Args args
)
if (
isFunctionPointer!Fun
)

Meta