Bonkers

Andy Armstrong andy at hexten.net
Fri May 11 13:55:54 BST 2007


On 11 May 2007, at 13:32, Peter Corlett wrote:
> I've just given it a spin and looked at the assembler output, and I  
> can't
> cause array pass-by-value either unless I wrap it in a struct. So  
> it does
> seem that arrays do indeed turn into pointers. My memory of this is  
> clearly
> faulty, presumably corroded by me normally wrapping them in classes  
> and
> passing them that way.

Arrays nearly always behave like pointers - except from when the  
don't. HTH, HAND :)

-- 
Andy Armstrong, hexten.net



More information about the london.pm mailing list