www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Fix that alows local symbols to be used as parameters to non-global

reply Timon Gehr <timon.gehr gmx.ch> writes:
A heads-up for those of you who have started to rely on this fix in DMD:
https://github.com/dlang/dmd/pull/9702
https://issues.dlang.org/show_bug.cgi?id=5710

A workaround is to use static template functions with UFCS instead of 
member template functions. (Without this fix, any member template 
function with an alias parameter is a code smell.)
Jan 07
parent M.M. <matus email.cz> writes:
On Friday, 8 January 2021 at 03:38:20 UTC, Timon Gehr wrote:
 A heads-up for those of you who have started to rely on this 
 fix in DMD:
 https://github.com/dlang/dmd/pull/9702
 https://issues.dlang.org/show_bug.cgi?id=5710

 A workaround is to use static template functions with UFCS 
 instead of member template functions. (Without this fix, any 
 member template function with an alias parameter is a code 
 smell.)
Is there any (even long-term) plan to address this again (other than the workaround)?
Jan 10