Top  Previous  Next

What is translated > Types > Ranges


Numeric ranges for the specification of the size of an array are reduced to a single value at the translation into C++. The original limits are inserted in the translated code as a comment.


type foo = array [1..10] of Char   


typedef char foo [ 10/* 1..10 */ ]



Numeric ranges for the definition of the range of a type are left out at the translation.


TYearType = 1..12;  


int TYearType;/* range 1..12*/


In other cases the range specifications are copied in the C++ code as they are in Delphi and must be adapted by hand.







This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content