2 ms·
In D, the only size that varies is pointer size. An int is 32 bits, a long is 64. Makes life much easier.
by WalterBright 6y ago
In 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