Strange implicit conversion integers on concatenation

lngns contact at lngnslnvsk.net
Mon Nov 5 15:59:09 UTC 2018


It adds the equivalent char value, which is interpreted as ASCII 
when printing.
You can append an object of its underlying (or a compatible) type 
to an array.

```
void main()
{
     import std.stdio : writeln;

     writeln("hello " ~ 42); //hello *
     writeln([42, 56] ~ 7); //[42, 56, 7]
}
```


More information about the Digitalmars-d mailing list