How to concatenate a tuple of strings at compile time?

paul paul at example.com
Sat Jan 6 22:56:54 UTC 2018


Thanks for the input.

Unfortunately I still can't convince the compiler. __traits 
allMembers includes functions. Trying to filter those with 
std.traits.isCallable, it complains about strings that can't be 
read or fields that can't be accessed at compile time. Affected 
are both solutions.

So any insight in why mixin(fullyQualifiedName!T ~ "." ~ item) 
produces a compiler error saying that string can't be accessed at 
compile time would be very appreciated.

Same goes for [tuple(..)].filter!(item => 
!isCallable!(mixin(fullyQualifiedName!T ~ "." ~ item))).join;




More information about the Digitalmars-d-learn mailing list