Re:Javascript Pointers
by gildas on Monday May 09, 2011 @02:39PM
(#2529722)
There are other solutions:
http://brandon.pulpexplosion.com/index.php/2010/05/javascrip...
[ Parent
| on HN ]
What problem does this solve? What problem do either of these ideas solve? Is the question, "What is the best way to troll programmers on the internet?"
I wish it was the case...
It's not exactly fair to call either technique pointers, but the original could be useful for more things than just this (though this is probably the intended use case).
The linked article, however, makes no sense. The author does not seem to understand how JavaScript works. Arrays are not copied when passed to another function.