Anonymous Methods

Top  Previous  Next

New features since Delphi 7 > Anonymous Methods

 

The corresponding C++ feature to Delphi's anonymous methods are lambda expressions. The translation is quite straight forward:

 

The following examples are taken from

 

http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/devcommon/anonymousmethods_xml.html

 

 

Assignment to a method reference
Assignment to a method
Using anonymous methods
Variable binding
Use as events

 

 

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content