News for hackers. Stuff that matters.
Re:About V, the language Volt is written in by runeks on Thursday February 07, 2019 @10:11AM (#19105632)
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.

There are no comments on this comment yet.