Array parameters

Top  Previous  Next

What is translated > Array parameters

 

Static and dynamic arrays can be passed in Delphi to the same function, if it expects an open array parameter. In the C++ translation static and dynamic  arrays are incompatible types. Static arrays are passed to functions as open array. Dynamic array can be passed to a function only, if the type of the dynamic array is defined explicitly and the function expects this type. Array of const parameters allow to pass an array on the fly.



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content