Memory Management

Pass by Value

English

Overview

A parameter-passing scheme where a copy of the value itself is passed.

Details

A scheme where a copy of the passed value is used inside the function, so changes made there don't affect the caller. In languages where object references themselves are passed by value, it's the reference that's copied -- the object it points to is still shared, which is worth watching out for.

More Programming terms