Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Programming Language to Replace C++

Name: Anonymous 2010-08-11 21:49

I think we can all agree that C++ is a terrible language. So why is it still around?

When talking to most C++ users (game developers, systems programmers), I've found that most seem to recognize C++'s faults, but they don't really care. They aren't even the slightest bit interested in a new language that might solve its problems, even one that gives them all the power of C++ with none of the downsides. You can't even get them to look at something new.

Why is that? Why does everyone just 'live with it' without wanting to improve the situation?

Name: Anonymous 2010-08-16 1:48

When this variable goes out of scope, free whatever it is pointing to. That's exactly what the "scope" annotation does in D. This is what I am talking about.
I remember someone in my university pointing a relationship like this out and wondering, then, why it isn't common practice to auto deallocate variables once scope changes.  So it may be a naive question but: why would automatic deallocation based on scope change - am I right in simplifying this as change to a program's call stack - be a bad idea?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List