A
Axel Dahmen
Hi,
I want to start a technical discussion on the fact that C# doesn't define
any mathematical operators on other integral types than int.
Simple things like the following just aren't possible in C#:
ushort a,b,c;
a = b = 0;
c = a - b;
Whatever integral data type you use, you'll always get an error "can't
implicitly convert to int." What's the purpose of this?? If the language
provides types like byte or ushort I want to use them. I want to see
overflow errors whenever routines miscalculate something.
What the compiler does here is technically and mathematically incomplete.
And it should be fixed ASAP.
Anyone?
Axel Dahmen
I want to start a technical discussion on the fact that C# doesn't define
any mathematical operators on other integral types than int.
Simple things like the following just aren't possible in C#:
ushort a,b,c;
a = b = 0;
c = a - b;
Whatever integral data type you use, you'll always get an error "can't
implicitly convert to int." What's the purpose of this?? If the language
provides types like byte or ushort I want to use them. I want to see
overflow errors whenever routines miscalculate something.
What the compiler does here is technically and mathematically incomplete.
And it should be fixed ASAP.
Anyone?
Axel Dahmen