Is possible to changed a function argument that was passed by value mid function by changing the original variable #21485
Labels
bug
Observed behavior contradicts documented or intended behavior
Zig Version
0.14.0-dev.1298+d9e8671d9
Steps to Reproduce and Observed Behavior
Minimal test repo code
Expected Behavior
I wasn't expecting the value of
target
to change mid function because I changed other variable. The only explanation is that zig is not passing it by value!The text was updated successfully, but these errors were encountered: