Arrays (again)

Today I continued to work on the arrays.
Very nice are the index offsets:

// XieXie
int[5 .. 10] myArray
myArray[7] := 42

// C++
std::array< int, 6 > myArray = { 0 };
myArray[7 - 5] = 42;

OK I’m tired, so I skip the long explanations this time ;-)

Leave a Reply