Bonkers

Jon Nangle blowfish at cix.co.uk
Fri May 11 14:04:38 BST 2007


On Fri, May 11, 2007 at 01:32:55PM +0100, 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.

Ah okay, cheers - it's been a while since I've written any C but I was
pretty sure about the passing by value thing, just because I remember it
seeming a bit random when I first learned the language. The passing by
struct idiom rings a vague bell.

Jon



More information about the london.pm mailing list