Issue 5710

Simen Kjærås simen.kjaras at gmail.com
Fri May 24 07:55:57 UTC 2019


I just wanted to thank سليمان السهمي (Suleyman Sahmi) for fixing 
issue 5710[1] (cannot use delegates as parameters to non-global 
template). It's been the one issue that I've consistently hit my 
head on, and it's existed for as long as D has had templates and 
delegates, so when I saw there was a fix I was overjoyed.

Yesterday I once again hit this snag, and thought 'hey, I'll just 
download nightly and see how well it actually works', and it's a 
transformative experience. So many designs that were previously 
impossible are now easy. So many hoops that I've gotten used to 
jump through I can now put in the dustbin of history. It's easily 
the biggest load off my shoulders as a D user since I started 
using D in 2004 or so.

I ended up completely rethinking my design because of this one 
bugfix, and ended up with something far more intuitive and easier 
to both use and write.

I understand there is work underway to revert this fix[2], and I 
hope a solution can be found here that means I can still use my 
newfound powers.

--
   Simen

[1]: https://issues.dlang.org/show_bug.cgi?id=5710
[2]: https://github.com/dlang/dmd/pull/9702


More information about the Digitalmars-d mailing list