Search Results
ID: u54oaAfr/pol/511961493#511991736
8/2/2025, 1:10:28 AM
>>511991010
yeah, but you have to be careful when passing by reference because changes made to the reference are reflected in the original scope, instead of only being reflected in the scope you made the change in
>pass by value = operate on an identical copy of the variable
>pass by reference = operate on the original variable
when you do value-destroying bit-twiddling hacks like Carmack's Fast Inverse Square Root, it's important to remember which things you passed by value and which you passed by reference, so you don't change something you didn't mean to and do change the things you did mean to
yeah, but you have to be careful when passing by reference because changes made to the reference are reflected in the original scope, instead of only being reflected in the scope you made the change in
>pass by value = operate on an identical copy of the variable
>pass by reference = operate on the original variable
when you do value-destroying bit-twiddling hacks like Carmack's Fast Inverse Square Root, it's important to remember which things you passed by value and which you passed by reference, so you don't change something you didn't mean to and do change the things you did mean to
Page 1