プレイ日記
raimondz raimondxz
While I was working on my chunk editor, I found something interesting. I don't remember if they mentioned this behavior on the documentation.
5そうだね
プレイ済み
返信[1]
親投稿
Kl'Dck Hul HissingToaster
I'm not sure there is a way to have an array WITHOUT a pointer. They're basically locations in memory. I believe they are only copied when passed as parameters
0そうだね
プレイ済み
返信[2]
親投稿
raimondz raimondxz
Sorry, i should have written "expected result if cloned" instead at line 18. I though that arrays were cloned in smilebasic because pointers are dificult to handle.
0そうだね
プレイ済み
返信[3]
親投稿
calc84 calc84maniac
Actually, even when passed as parameters they are pointers (which is very useful because then you can modify the original array in a command/function). You have to explicitly use COPY if you want to make a full copy of an array.
1そうだね
プレイ済み
返信[4]
親投稿
The Dude burns_ruber
Hay @Raymondz, are you good at working with game engines?
0そうだね
プレイ済み