2 ms·
I wanted to ask OP about this part specifically, so I’ll write my questions here. a) how do you plan to do this? b) will the optimization still kick in if you
by runeks 8y ago
I wanted to ask OP about this part specifically, so I’ll write my questions here.
a) how do you plan to do this?
b) will the optimization still kick in if you name the return value something else than “a”?
c) what if “a” is an argument passed to the function that calls “multiplyBy2”? Then doing an in-place update would modify the value of “a” for some other function that has also been passed “a” as an argument.