array of const

Top  Previous  Next

What is translated > Types > Arrays > Array parameters > array of const

 

"Array of const" parameters look similar to open array parameters.

 

procedure foo(Args : array of const);

 

However, while all elements of an open array have the same type,  elements of different types can be passed as an array of const. Indeed the array of const is an open array of TVarRec elements and TVarRec is a variant type which which can contain the single values of different types.

 

These array's are reproduced in C++ differently for:

 

C++Builder

Other compilers

 

 

Delphi2C++ can distinguish whether set parameters have to be passed as array of const or normal set's.

 

 

 

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content