On Saturday, 18 November 2017 at 14:22:19 UTC, kerdemdemir wrote:
bool foo( bool function( double ) controlFoo )
Change that `function` to `delegate` and it should work.Function pointers aren't allowed to access other locals, but delegates are.
Adam D. Ruppe via Digitalmars-d-learn Sat, 18 Nov 2017 06:36:06 -0800
On Saturday, 18 November 2017 at 14:22:19 UTC, kerdemdemir wrote:
bool foo( bool function( double ) controlFoo )
Change that `function` to `delegate` and it should work.Function pointers aren't allowed to access other locals, but delegates are.