Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Re: C++ more ef...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 44615 of 47562
Post > Topic >>

Re: C++ more efficient than C?

by lbonafide@[EMAIL PROTECTED] Apr 10, 2008 at 05:25 AM

On Apr 10, 7:00=A0am, Juha Nieminen <nos...@[EMAIL PROTECTED]
> wrote:
> Chris Thomasson wrote:
> >> =A0I disagree with that. It is the language's fault. C just makes it
wa=
y
> >> too easy to leak memory.
>
> > Makes it easy for who to leak memory? The programmer is required to
free=

> > allocated memory. If he/she does not do that, how can you blame the
> > language?
>
> =A0 Because the programmer shouldn't be required to manually free the
> memory. This is a task for the compiler, not the programmer. If the
> language requires that the programmer frees the memory, then it's the
> fault of the language.

One man's fault is another man's feature.  Some people like fine
grained control over memory allocation, and don't want garbage
collectors firing up at unpredictable times.
 




 2 Posts in Topic:
Re: C++ more efficient than C?
lbonafide@[EMAIL PROTECTE  2008-04-10 05:25:06 
Re: C++ more efficient than C?
Juha Nieminen <nospam@  2008-04-10 17:18:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 7:56:31 CDT 2008.