Thread: Item System
View Single Post
  #13  
Old 09-24-2008, 01:48 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Inverness View Post
Third, Stefan made it so you can use var = {} rather than var = new[0]
var = new [0]; is better style, especially for those who come from a variety of other high level languages. It's quite possible to also do things like var = new [3]; and so on to already allocate the space you need/make it clearer just how big the array should be at first glance.

I personally believe Stefan shouldn't have added var = {}; - it's quite bad style.
Reply With Quote