float init 0 request

Nick Treleaven nick at geany.org
Wed Aug 19 18:22:16 UTC 2026


On Wednesday, 19 August 2026 at 09:55:56 UTC, Nick Treleaven 
wrote:
> I think implicit conversion from integer to character types is 
> a more serious problem than going the other direction:
> ```d
>     int i = 80;
>     writeln("" ~ i); // prints 'P'
> ```

Sorry, that does error actually - string ~ byte does work:
```d
     byte b = 80;
     writeln("" ~ b); // prints 'P'
     int i = 80;
     string s;
     s ~= i; // allowed
     writeln(""d ~ i); // prints 'P'
```


More information about the Digitalmars-d mailing list