News for hackers. Stuff that matters.
Re:C++ Papercuts by tubs on Monday August 28, 2023 @10:36AM (#37294706)
Java and c# are both pass by value (c# has optional ref that must be annotated at both the call site and definition, it also has value structures).

Class types are effectively pointers that are passed by the value of the pointer.

You cannot implement swap in Java without eg wrapping the params in one element arrays.

There are no comments on this comment yet.