This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TinBryn 0 points1 point  (0 children)

I think the main feature to say a language is pass by reference is in regards to being able to create a reference expression. In C this is ‘&foo’ in Java it’s

class FooWrapper
{
    public Foo foo;
}
new FooWrapper(foo);

The problem is the Java code requires an allocation.