reflection based on my experience so far on compile-time meta-programming in D as a novice user: the problems

Sebastiaan Koppe mail at
Mon Sep 14 12:37:18 UTC 2020

On Monday, 14 September 2020 at 12:27:34 UTC, Simen Kjærås wrote:
> String mixins, like inline assembly, is a very powerful tool. 
> Just like inline assembly though, it's usually not the tool you 
> should be reaching for. Generally, if it's possible to do 
> something without string mixins, that way will be less error 
> prone and more readable.

That is not what I was asking for.

There are plenty of cases where a string mixin is the only way 
out. How then, given a T template argument, do you generate a 
string representing T without using .stringof?

More information about the Digitalmars-d mailing list