3 ms·
I think C# did it right in 2000. Regardless of CPU architecture, integer types like short, int, or ulong have fixed size of 16, 32 and 64 bits respectively. Th
by Const-me 4y ago
I think C# did it right in 2000. Regardless of CPU architecture, integer types like short, int, or ulong have fixed size of 16, 32 and 64 bits respectively.
There're couple special types with machine-dependent size, like IntPtr, but these only used for opaque handles and C interop.
- Macha 4y agoThis is something it inherited from Java and is standard in newer languages like Rust and Go too