Routines

Top  Previous  Next

What is translated > Routines

There are two kinds of routines in Delphi: procedures and functions.

 

If a routine has no parameters in contrast to Delphi the calls of the routine in C++ have to end with parenthesis.

 

foo;   ->  foo();

 

The way in which the function signatures are translated depends on the translation mode. However, unless explicitly stated, all explanations in this documentation refer to the  Delphi mode.

There are different kinds of parameters, which have to be translated accordingly. Sometimes parameters cannot be passed directly as in Delphi, but a temporary variable has to be created at fist, which then is passed.

 

Delphi nested routines also are reproduced in C++11.

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content