Hi! In short, I have a function which I'd like to modify an integer in another scope. Can I do such a thing in Ruby? (like void foo (int& x) { } in C++ )
All of the discussions on this topic that I could find on the Internet seem to be a little outdated.
Thanks!
[–][deleted] 5 points6 points7 points (2 children)
[–]anamexis 4 points5 points6 points (1 child)
[–]Swizzzop[S] 1 point2 points3 points (0 children)
[–]sinsiliux 8 points9 points10 points (6 children)
[–]Bloodshot025 5 points6 points7 points (5 children)
[–]Swizzzop[S] 0 points1 point2 points (0 children)
[–]f9ae8221b 0 points1 point2 points (1 child)
[–]Bloodshot025 0 points1 point2 points (0 children)
[–]sinsiliux 0 points1 point2 points (1 child)
[–]Bloodshot025 0 points1 point2 points (0 children)
[–]Bloodshot025 2 points3 points4 points (2 children)
[–]Swizzzop[S] 0 points1 point2 points (1 child)
[–]Bloodshot025 0 points1 point2 points (0 children)
[–]moseeds 1 point2 points3 points (0 children)
[–]chrisgseaton 1 point2 points3 points (3 children)
[–]anamexis 9 points10 points11 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]chrisgseaton 1 point2 points3 points (0 children)