In reply to @_cyberdot "I have a question": It is essentially this. I want to create a proc to avoid code duplication. I was doing some experiments with the Vector2 class from raylib, and there is some code duplication concerning X and Y coordinates when I code wall colision. I was hoping that I could pass Vector2.position.X and Vector2.position.Y as references into a procedure so I could avoid duplicating the same set of if's. This is definitely a minor problem, I am probably saving like just 10 lines of code, but I am trying to understand if this would work for more extensive code duplications that would require reiterating the same code.