The following condition, during my tests, always returns True
var
Tmp : Boolean;
begin
if(Tmp)
then ShowMessage('True')
else ShowMessage('False');
end;
On compiling, I get the following warning message:
[DCC Warning] Unit1.pas(30): W1036 Variable 'Tmp' might not have been initialized
Does checking an unassigned local Boolean
variable always returns True
or is it pure casuality?