News for hackers. Stuff that matters.
Re:Java is Pass-by-Value, Dammit by TazeTSchnitzel on Saturday March 21, 2015 @11:14PM (#9245415)
What Java does is pretty much equivalent to putting an asterisk in your C/C++ typedefs:

    typedef struct _foo* Foo;
Re:Java is Pass-by-Value, Dammit by metaobject on Sunday March 22, 2015 @12:22AM (#9245573)
I'm guessing this is why you have to call "new" to create new objects in Java?
Re:Java is Pass-by-Value, Dammit by TazeTSchnitzel on Sunday March 22, 2015 @12:41AM (#9245615)
Java's new is similar to C++'s new as I understand it, yes. It allocates memory, initialises an object, and produces a pointer.