Thread: Item System
View Single Post
  #15  
Old 09-24-2008, 06:16 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by DrakilorP2P View Post
nitpicking is substitute for useful criticism for people who arent good at high level and-or abstract scripting
I really don't care what you think of my programming ability, I'm quite confident in it.

Quote:
Originally Posted by Skyld View Post
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.
I suppose it is a personal preference thing. I believe I will consider using new[0] instead since it does fit in better with new[n] as you said.
__________________
Reply With Quote