Open wixoaGit opened 3 months ago
var/list/L = list(null, null) var/depth = 1 L[depth-1] = ++depth world.log << json_encode(L)
This should give [2,null] but instead crashes in OD because it evaluates to L[0] = 2 instead of L[1] = 2. ++depth should execute before depth-1.
[2,null]
L[0] = 2
L[1] = 2
++depth
depth-1
This should give
[2,null]
but instead crashes in OD because it evaluates toL[0] = 2
instead ofL[1] = 2
.++depth
should execute beforedepth-1
.