ID:179009
 
Something I've always been a bit ignorant to, what's the difference between var/list/List = new(), and var/list/List = list()?
The spelling. ;)
Foomer wrote:
Something I've always been a bit ignorant to, what's the difference between var/list/List = new(), and var/list/List = list()?

Also try:

var/List[] = list()
var/List[10]
var/List[] = new() //never done this one, but should work

Isn't BYOND neat? :-)

-AbyssDragon
Foomer wrote:
Something I've always been a bit ignorant to, what's the difference between var/list/List = new(), and var/list/List = list()?

There's no difference unless you supply an argument. new /list(n) creates a list with n null elements, whereas list(n) creates a list with n as the one and only element.

Lummox JR
In response to Shadowdarke
Okay. I was just afraid BYOND might be doing something bad behind my back... :oP