When we equate a variable to an array and do something with a variable, will this affect the array to which we equated it?
for example:
bim={0,1,2}
bom=bim
bom[1]=0
I wrote a lot of code, and in one function we do exactly this thing, somehow it affects the main array
I haven’t met this one before
I always thought that the variable and the array are not linked when equating and accessed this array through _G []
I want to know for sure how it works
Comments
To only change the bom table you need to make it separate from bim, something like:
strange that I have not encountered this problem before
Fragmenter - animated loop machine and IKONOMIKON - the memory game
finally I figured it out