SuperStrict
Framework Brl.StandardIO
Function TakeByte:Int(a:Byte)
End Function
TakeByte(False)
it results in:
Compile Warning: In call to Function TakeByte:Int(a:Byte). Argument #1 is "Int" but declaration is "Byte".
Is there a reason for "True/False" being internally integers? I know we do not have real booleans for now - but if we consider True is "1" and False is "0" (check with print (5 * true) and print (5 * false)) then couldn't we use the lowest possible primitive we support? In this case: Byte?
Take this code:
it results in:
Compile Warning: In call to Function TakeByte:Int(a:Byte). Argument #1 is "Int" but declaration is "Byte".
Is there a reason for "True/False" being internally integers? I know we do not have real booleans for now - but if we consider True is "1" and False is "0" (check with
print (5 * true)
andprint (5 * false)
) then couldn't we use the lowest possible primitive we support? In this case: Byte?