Are call-by-value and pass-by-value synonymous?

royco picture royco · Feb 13, 2011 · Viewed 8.1k times · Source

I always thought call-by-value and pass-by-value were synonymous. However, I recently heard someone refer to them as if they were different. Are they the same thing?

I'm also talking about their corresponding by-reference terms too.

Answer

Michael Goldshteyn picture Michael Goldshteyn · Feb 13, 2011

"Someone," is wrong. Check out the Wikipedia article which directly answers your question. You can point that certain "someone" at this article, as well:

Call-by-value evaluation (also referred to as pass-by-value) is the most common evaluation strategy, ...