On Thursday, 20 April 2017 at 10:23:30 UTC, Martin Tschierschke wrote: > Can it be possible to allow a function to be defined outside > the scope of use to return a "mixin object"? That's basically what I propose: https://forum.dlang.org/post/msotbcaqipiiqxiuppnj@forum.dlang.org this can be cheap compromise between macros and mixins.