Category Archives: C++

C++ passes by reference, Java and Ruby don’t

I got a lot of comments for the previous article, that was explaining how Ruby passes by value, just like Java does. I thought that showing a simple example implemented in C++, Java and Ruby will clarify the idea. In … Continue reading

Posted in C++, Java, Ruby | Tagged , | 143 Comments