Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 638
royco Avatar asked Feb 13 '11 22:02

royco


1 Answers

"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, ...

like image 87
Michael Goldshteyn Avatar answered Oct 13 '22 11:10

Michael Goldshteyn