Tuples, CTFE, and Sliding Template Arguments

Daniel N no at public.email
Sat Jan 13 14:36:12 UTC 2024


On Friday, 12 January 2024 at 22:35:54 UTC, Walter Bright wrote:
> Given the interest in CTFE of istrings, I have been thinking 
> about making a general use case out of it instead of one 
> specific to istrings.
> ---------------------
>

I agree, good idea, but it can be even more generalized, please 
check Rikkis idea.
https://gist.github.com/rikkimax/812de12e600a070fe267f3bdc1bb3928

Or distilled to a few lines by me...

```d
alias I(T...) = T;

void pluto(int a)
{
     pragma(msg, __traits(getArgumentAttributes, a));
}

void main()
{
     pluto(@"%s" I!1);
}
```



More information about the Digitalmars-d mailing list