Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rjhansen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
rjhansen
11y ago
It significantly predates the C++11 standard. Most of the smartpointers in the modern C++ standard weren't official until TR1 in 2003; even then, a lot of compilers took a long time to catch up. Prior to 2003, the only smartpointer in
2.
▲
by
rjhansen
11y ago
If that's straight-up bog-standard ANSI C++, then yes, there's a memory leak. But, to put my Devil's Advocate hat on a moment: the environment could be GCed and new could be overridden to return a GCed pointer, as opposed to
3.
▲
by
rjhansen
11y ago
As an observation, that's trivial: as an apologia, it's inadequate. I'm judging the author on what he said, not what other people think he really meant to say. If you change what the author said to be "C, C++ and Java a
4.
▲
by
rjhansen
11y ago
Anybody who calls C, C++, and Java three of the most different programming languages out there is someone who has never tried LISP, Prolog, or SQL. He also flat says "C++ OOP has nothing to do with Java-like OOP", which is just no