[fpc-pascal] parent class as a parameter type

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Nov 15 10:25:07 CET 2011


On 15/11/2011, Felipe Monteiro de Carvalho
<felipemonteiro.carvalho at gmail.com> wrote:
> On Tue, Nov 15, 2011 at 10:10 AM, Bart <bartjunk64 at gmail.com> wrote:
>> That would be strange indeed, because then most events (onclick
>> handlers etc) would not compile anymore, since they are in the format
>> procedure(Sender: TObject) of object...
>
> It is not like that, he forgot adding var or out to the parameter. The
> example which you are mentioning has no var.

Indeed. I checked my code and Delphi 5-7 compatibility. The problem I
had, wast that I specified those parameters as var.


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net



More information about the fpc-pascal mailing list