Workaround for DIP 1005

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Sat Feb 4 03:56:52 PST 2017


On Saturday, 4 February 2017 at 11:50:50 UTC, crimaniak wrote:
> On Friday, 3 February 2017 at 21:23:22 UTC, Daniel Nielsen 
> wrote:
>
>> I just had to try one more thing. It never ceases to amaze me 
>> what is possible in D today.
>  Yes, all except of good IDE and tooling.
>
>>
>> template imp(string mod) { mixin("import imp = " ~ mod ~ ";"); 
>> }
> ... because of string mixins.

please refrain from insulting string-mixins.
they are by far the most understandable of meta-programming 
facilities.



More information about the Digitalmars-d mailing list