A colleague of mine spotted the weirdest XE6 bug so far.

A colleague of mine spotted the weirdest XE6 bug so far.

On an TMS TAdvStringGrid

1.

for i := 0 to Grid.RowCount – 1

 do Grid.RowHeights[i] := rh;

2.

for i := 0 to Grid.RowCount – 1

do begin

  Grid.RowHeights[i] := rh;

end;

Example 1 failed at setting all lines, Example 2 worked.

Does anyone know of an XE6  QC or QP that is related to “missing” begin/end enclosures?

12 thoughts on “A colleague of mine spotted the weirdest XE6 bug so far.


  1. It took me 25 years to rethink my formatting for readability, and it seems to works for the team. Conditions on one or more lines, statements on one or more following lines – after a do/then (begin/end) – never on the same line. Don’t diss it until you’ve tried it 😉


    I don’t even have a theory to why this should go wrong.


  2. Lars Fosdal We have one style per coder… Which at least makes it easy to know who to pester when you’re wondering some piece of code is doing 😛


    Back on topic, I’d love to see the asm output of the two.

Leave a Reply