From: Skybuck Flying on
Hello,

I wonder if the following code might produce different results in Delphi:

var
a : pointer; // pointer to array a
b : array of byte; // pointer to array b
p : pointer;
begin
p := pointer( a + offset calculation (multplication involved) );

vs

p := @b[ offset calculation (multplication involved) ];
end;

a and b are pretty much the same... I wonder if the index operator triggers
anything special in the delphi compiler...

I haven't investigated this yet... but for now my bet is that Delphi will
simply "produce" / emit the same assembler instructions ?! ;)

Bye,
Skybuck.