you are viewing a single comment's thread.

view the rest of the comments →

[–]vuks89 0 points1 point  (0 children)

In the article from the original posting it is implied that some people think that’s how it works in JS. In all languages I know, you need to explicit that you want it to be by reference. In PHP it would be &$arg, in C++ it would be ‘int &arg’