DIP 1027---String Interpolation---Community Review Round 1

Walter Bright newshound2 at digitalmars.com
Sat Dec 14 07:57:19 UTC 2019


On 12/11/2019 5:00 AM, Sebastiaan Koppe wrote:
> ---
> string str = "work";
> template myTemplate(string str, Args...) {}
> 
> myTemplate!(i"will this %str as expected?");
> ---
> 
> How will the params be passed? Aliased?

As if you wrote:

    myTemplate!("will this %s as expected", str);


More information about the Digitalmars-d mailing list