Tuples, CTFE, and Sliding Template Arguments

Walter Bright newshound2 at digitalmars.com
Sat Jan 13 02:19:08 UTC 2024


On 1/12/2024 4:39 PM, Steven Schveighoffer wrote:
> ```d
> writefln("blah %d", 1)
> ```
> 
> Since `writefln` (and `format`) have string template format parameter versions.
> 
> Even with an opt-in, there will still be a decision to make (or throw an 
> ambiguity error) for matching overloads.

That's why the template shifting one would be a lower priority match.



More information about the Digitalmars-d mailing list