[Coco] question C++

John Kent jekent at optusnet.com.au
Thu Mar 22 22:04:19 EDT 2012


Yes I was thinking that but I figured if you are just starting out with 
C or C++, it's best to start with the basics and work up.

I have used Borland C++ builder in the past, but I tend to stick with 
just straight C for most of the programs I write, which generally tend 
to be for embedded control where RAM and code space is at a premium. C 
is more efficient in memory use for those applications.

My brother and former boss (who both have PhDs in computer science) say 
that C++ is a bit of a cludge and is excessively complicated.

I haven't done much C++ programming for a while. I've tended to focus 
more on VHDL hardware description language in recent times, more content 
with designing the hardware than writing code for it.

John.

On 22/03/2012 10:46 PM, T. Franklin wrote:
> 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
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>

-- 
http://www.johnkent.com.au
http://members.optusnet.com.au/jekent




More information about the Coco mailing list