Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

How to delete new'd arrays?

$
0
0
I have an array I create thusly: var room:roomInfo[,,]; room=new roomInfo[5,5,5]; What's the deleting syntax? Simply doing `delete room;` or `delete room[,,];` doesn't seem to work. After deleting it I need to do this: room=new roomInfo[10,10,10]; Seems like a ridiculously simple question but I get confused about these things and forget, and I couldn't find anything on Google (because I couldn't work out what to search).

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>