Hello Jonas, Regarding the fix on 30022. I'd think the behavior is Delphi compatible, where it would also complain passing a function (block) with address operator.
It's just a bit surprising, since it's inconsistent with regular procedure type variables. {$mode delphi} type TMyProc = procedure; procedure Test; begin writeln('test'); end; procedure Call(p: TMyProc); begin p(); end; begin Call(Test); // works Call(@Test); // works end. thanks, Dmitry
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel