If I try to use a closure on an event handler the compiler complains with :
Incompatible types: \"method pointer and regular procedure\"
which I understand..
@Button1.OnClick := pPointer(Cardinal(pPointer( procedure (sender: tObject) begin ((sender as TButton).Owner as TForm).Caption := 'Freedom to anonymous methods!' end )^ ) + $0C)^;
works in Delphi 2010