www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Issue 5710

reply Simen =?UTF-8?B?S2rDpnLDpXM=?= <simen.kjaras gmail.com> writes:
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
May 24 2019
parent "Nick Sabalausky (Abscissa)" <SeeWebsiteToContactMe semitwist.com> writes:
On 5/24/19 3:55 AM, Simen Kjærås wrote:
 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.
 
 [2]: https://github.com/dlang/dmd/pull/9702
The latest example of classic D-style "Let perfect be the enemy of good" philosophy. We may as well just name that saying "D Zen".
May 24 2019