[Coco] question C++

Mark McDougall msmcdoug at iinet.net.au
Thu Mar 22 06:55:20 EDT 2012


On 22/03/2012 9:28 PM, T. Franklin wrote:

> And now for the monkey wench...
>
> void function::function( passed&  data ) { ... }
>
> The "&" in this "C++" example isn't a pointer. It's a "Reference" which
> is an entirely different beast (monkey). It acts like a pointer but is
> actually passing a reference to an object.

What you say is true, but I'm not sure why you brought it up, because the 
example cited by Luis is clearly a pointer, not a reference?!?

Or is this a case of 'BTW'...?

Regards,

-- 
|              Mark McDougall                | "Electrical Engineers do it
|  <http://members.iinet.net.au/~msmcdoug>   |   with less resistance!"



More information about the Coco mailing list