On Thursday, 11 June 2020 at 22:19:27 UTC, H. S. Teoh wrote:
To encourage inlining, you could make it an alias parameter instead of a delegate, something like this:

        void overlap(alias cb)(SType start, SType stop) { ... }
        ...
        bed[chr].overlap!callback(st0, en0);



I don't think ldc can handl that yet. I get an error saying

```
source/app.d(72,7): Error: function app.main.overlap!(callback).overlap requires a dual-context, which is not yet supported by LDC
```

And I see an open ticket for it on the ldc project.

Reply via email to