On Mon, 17 May 2010 11:41:22 +0200
Graeme Geldenhuys <graemeg.li...@gmail.com> wrote:

>[...]
> Looking at the Lazarus code for Application.CreateForm. Now they do other
> strange things too, creating a instance without calling the constructor
> etc... This doesn't seem like something I want either and still doesn't
> solve the problem where somebody could pass in any object type to CreateForm.

VCL/LCL sets first the variable. This way code can already access
the variable while the OnCreate event is processed.

Mattias
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to