[Coco] question C++
T. Franklin
tim at franklinlabs.com
Thu Mar 22 07:46:40 EDT 2012
Yes, it's a BTW... also the title of the thread states that its a "C++" question but references are all "C" code. My point is that there's a huge difference between the two and that the syntax for pointers can get confusing when you actually are talking "C++"
-----Original Message-----
From: Mark McDougall [mailto:msmcdoug at iinet.net.au]
Sent: Thursday, March 22, 2012 05:55 AM
To: 'CoCoList for Color Computer Enthusiasts'
Subject: Re: [Coco] question C++
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| | with less resistance!"--Coco mailing listCoco at maltedmedia.comhttp://five.pairlist.net/mailman/listinfo/coco
More information about the Coco
mailing list