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

Matheus matheus at gmail.com
Thu Sep 10 18:47:59 UTC 2020


On Thursday, 10 September 2020 at 18:40:03 UTC, Matheus wrote:
> 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.

Forget... I just remembered that there was a thread about this, 
and in this case could be a concatenation between "string" and a 
"char".

Matheus.


More information about the Digitalmars-d mailing list