Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No, that's passing by value a reference to an object (Dog array) that contains a reference to another object (Dog). The variable "dog" that is the parameter to "method" is passed by VALUE, not by reference. Passing something by reference is NOT the same as passing a reference to something by value.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: