|
Passing Anonymous Methods as Parameters |
Top Previous Next |
|
New features since Delphi 7 > Anonymous Methods > Passing Anonymous Methods as Parameters
Delphi
procedure Analyze(Proc: TProcRef); begin Proc; end;
C++ portable
void Analyze(TProcRef Proc) { Proc(); }
C++Builder
void Analyze(TProcRef Proc) { Proc->Invoke(); }
The callable object is passed by value.
|
|
This page belongs to the Delphi2Cpp Documentation |
Delphi2Cpp home Content |