[OT] The Usual Arithmetic Confusions

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Fri Feb 4 15:41:46 UTC 2022


On Friday, 4 February 2022 at 15:00:18 UTC, Guillaume Piolat 
wrote:
> C does the conversion to shorter integer implicitely, D does 
> not and if you translate you have to cast().

Let us not forget that D does not compete with C (nobody can). D 
competes with C++, Nim, and so on. Even C++ keeps introducing new 
basic type to get better type safety for every new edition of the 
language. For instance, in C++ ```std::byte``` is not an 
arithmetic type.

This is an improvement, also for system level native programming.



More information about the Digitalmars-d mailing list