When you "implement T32x", it adds this function.
My question: does "this" need to point to an array?
JASS:
My question: does "this" need to point to an array?
Wouldn't replacing [ljass]s__structname_T32x__next[(0)] [/ljass] with [ljass]s__structname_T32x__next [/ljass] be more efficient?
Or is it even possible?
integer array s__a
integer array s__a__next
integer array s__a__prev
function s__a_create ... returns integer
set s__a[s__a__allocate_count] = new struct // however JH does this
// Watch this part (link the list)
set s__a__prev[s__a__next[(0)]] = s__a[s__a__allocate_count]
set s__a__next[s__a[s__a__allocate_count]] = s__a__next[(0)]
set s__a__next[(0)] = s__a[s__a__allocate_count]
set s__a__prev[(0)] = s__a[(0)]
return s__a[s__a__allocate_count]
endfunction