[fpc-pascal] problem with procedural types
Dariusz Mazur
darekm at emadar.com
Sat Dec 18 21:01:30 CET 2004
Hi
I upgrade Lazarus and FPT to current snapshot an I have problem
I can compile this procedure
procedure tForm1.MouseCLick(sender:tObject);
begin
end;
procedure tForm1.onnn(var onc : tNotifyEvent);
begin
onclick:={$IFDEF FPC}@{$ENDIF}onc;
end;
compiler claim:
Error: incompatible types: got "Pointer" expected "<procedure variable
type of procedure(TObject) of object; Register>"
when I try
onclick:={$IFDEF FPC}@{$ENDIF}MouseClick;
till now everything were OK
Darek
More information about the fpc-pascal
mailing list