Tuples, CTFE, and Sliding Template Arguments

Timon Gehr timon.gehr at gmx.ch
Mon Jan 15 14:44:49 UTC 2024


On 1/15/24 09:03, Walter Bright wrote:
> 
> Furthermore, if a string type was passed to execi() as the first 
> argument, it would not compile, as 1027 would type it as a 
> `FormatString`, not a `string`. So execi() would only work on the output 
> of the string interpolator, not any random string.

Do you believe that if the documentation has the following examples:

```d
writefln("%s", x);
writefln(i"$x");
```

Then it is not inevitable that at some point, someone will write an 
implementation of `execi` with the signature `void execi(T...)(string, T)` ?


More information about the Digitalmars-d mailing list