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();

 

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