Pass by reference vs pass by value

(Johan Dahl) #1

Best animation ever to explain difference :smiley:

Print pointer to integer slice
(catacombs) #2

Wow…I get it now.

(framp) #3

Great animation :+1:
But frankly - it’s also clear by text:

If I pass you a pint by value we both can drink a pint.
If I pass you a pint by reference we have to share the pint.


(cosmos) #4

content of a page -> pass by value
url -> pass by reference

(Jaron R. Swab) #5

That’s the most awesome graphic I’ve seen today.
Thanks for sharing. We should have more of these btw…

(system) closed #6

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.