Looking for a Code Review of a Bioinformatics POC

duck_tape sstadick at gmail.com
Thu Jun 11 22:41:12 UTC 2020


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.


More information about the Digitalmars-d-learn mailing list