[fpc-devel] Parameters must match exactly?

Florian Klaempfl florian at freepascal.org
Mon May 17 21:24:27 CEST 2010

Graeme Geldenhuys schrieb:
> 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.

... and one uses normally a function and not a var/out parameter.

More information about the fpc-devel mailing list