[fpc-devel] c-blocks (darwin aarch64)
    Dmitry Boyarintsev 
    skalogryz.lists at gmail.com
       
    Mon Apr 18 04:37:24 CEST 2016
    
    
  
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160417/9930dc0b/attachment.html>
    
    
More information about the fpc-devel
mailing list