Discussion Thread: DIP 1036--Formatted String Tuple Literals--Community Review Round 1

Matheus matheus at gmail.com
Thu Sep 10 18:40:03 UTC 2020


On Thursday, 10 September 2020 at 18:30:26 UTC, zoujiaqing wrote:
>
> Please support like this:
>
> int i = 10;
>
> string b = "test " ~ i;
>
> writeln(b); // test 10

Shouldn't a type like "i" in this example be automatically 
converted to string in cases like this?

Matheus.


More information about the Digitalmars-d mailing list