Am 14.06.2017 11:13 schrieb "Gabor Boros" <mlngl...@bgss.hu>: > > 2017. 06. 14. 10:28 keltezéssel, José Mejuto írta: >> >> That's wrong for sure, x is not initialized to nil, not in Linux nor in Windows. > > > With the below code caption of the form not changed on Linux for me. > > > procedure TForm1.FormCreate(Sender: TObject); > var > x:TPanel; > > begin > if Assigned(x) then Caption:='Assigned'; > end;
In this example the content of "x" is undefined as it's a local variable. The value of it is simply what is currently on the stack which *can* be Nil. Regards, Sven
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal