Michael Van Canneyt het geskryf: > > And correctly so, because you need the OUT: you are modifying the pointer > and need to pass back the modified pointer to the caller.
Yes, but I can't use OUT because the type of AForm doesn't match exactly - back to my initial problem when I started with FPC 2.5.1. TfpgWindowBase vs TBulkInvoiceRateListForm type. This compiler change will play havoc on the Simple Factory Method design pattern as well - a base class is used as the parameter type, but descendants are created and passed back. This is a very common case and used a lot. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel