Quote:
Originally Posted by Natsheh
it really depends on how smart the compiler is, for AMXX its stupid, if(a = 5) since its in a if statement it should be comparing and since pawn in amxx doesnt support data types there are no reason for double equal chars for comparing....
also beside pawn uses only unsign data type.........
|
Umm . . no. One equal sign is assignment, two is for comparison. The compiler should not promote bad coding practices and should tell you that you might be doing it wrong. If a language did do that, I'd consider it a poorly designed language.
Also, when used as integers (e.g. untagged variables) are signed integers. How else are you going to get -1? I never seen a mechanism to force them to be unsigned (granted, I've never search for it either).
__________________