[fpc-devel] Parameters must match exactly?
Graeme Geldenhuys
graemeg.lists at gmail.com
Mon May 17 11:56:29 CEST 2010
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/
More information about the fpc-devel
mailing list