3 ms·
Any language 50 years old is going to have problems like this. C has done rather well.
by WalterBright 6y ago
Any language 50 years old is going to have problems like this. C has done rather well.
- m463 6y agoI don't know how D handles it, but I got an extraordinary "all is right with the world" years ago when I saw ada with common definitions for bit order, max integers and digits.
- WalterBright 6y agoIn D, the only size that varies is pointer size. An int is 32 bits, a long is 64. Makes life much easier.
- colejohnson66 6y agoSame with C#. int is an alias for System.Int32 and long is an alias for System.Int64. (Or is it the other way around?) Just don’t do what Java does and make Integer a class and int a value type. Then you end up with references and the “integer cache” garbage. https://viveksb007.github.io/2020/06/integer-cache-in-java https://viveksb007.github.io/2020/06/integer-cache-in-java