From: Skybuck Flying on 28 Jan 2010 07:21 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.
|
Pages: 1 Prev: use speakers Next: Business Analyst Online Training @ CVK OLT starts on Feb, 1st 8:30 PM EST |