On Friday, 5 April 2024 at 16:05:20 UTC, H. S. Teoh wrote:
On Fri, Apr 05, 2024 at 03:18:09PM +0000, Salih Dincer via Digitalmars-d-learn wrote:
Hi everyone,

Technically r1 and r2 are different types of range. Isn't it inconsistent to chain both? If not, why is the char type converted to int?
[...]

It's not inconsistent if there exists a common type that both range element types implicit convert to.


In the first example the int's are converted to doubles (also common type). But they appear as int's because writeln does not write a trailing .0.

Reply via email to