2 ms·
Boolean true is -1 in Visual Basic, too: https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/data-types/boolean-data-type https://docs.micro
by cpeterso 8y ago
Boolean true is -1 in Visual Basic, too: https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/data-types/boolean-data-type https://docs.microsoft.com/en-us/dotnet/visual-basic/languag...
- perl4ever 8y agoIt was traditional in earlier BASICs too; I think I remember it being the case in QuickBASIC and AmigaBASIC. I assume someone once upon a time thought it was a nice thing for ~x to be equal to !x.