Jesus4Lyf
Good Idea™
- Reaction score
- 397
You can make a 4D array with a single hashtable.
function saveInteger takes integer i, integer i2, integer i3, integer i4, integer value returns nothing
call SaveInteger(hasht,StringHash(I2S(i) + I2S(i2)),StringHash(I2S(i3) + I2S(i4)),value)
endfunction
function saveInteger takes integer i, integer i2, integer i3, integer i4, integer value returns nothing
call SaveInteger(hasht,StringHash(I2S(i) + "_" + I2S(i2)),StringHash(I2S(i3) + "_" + I2S(i4)),value)
endfunction
Yeah but not an unlimited one. But I see your point, as unlimited 4D arrays with hashtables are not possible even with multiple hashtables because of the limit. In fact, you could do an n-dimensional array with saving and loading hashtable handles to hashtables ... if only ... T_TYou can make a 4D array with a single hashtable.
How does kingking's example not handle all of that? (As long as you know what n is).Yeah but not an unlimited one. But I see your point, as unlimited 4D arrays with hashtables are not possible even with multiple hashtables because of the limit. In fact, you could do an n-dimensional array with saving and loading hashtable handles to hashtables ... if only ... T_T
How does kingking's example not handle all of that? (As long as you know what n is).
I was referring to this.JASS:function saveInteger takes integer i, integer i2, integer i3, integer i4, integer value returns nothing call SaveInteger(hasht,StringHash(I2S(i) + "_" + I2S(i2)),StringHash(I2S(i3) + "_" + I2S(i4)),value) endfunction
Theorically it has a use, but well i'm to lazy to explain more, believe what you want i won't change your mind anyway.This really is completely useless. I can't even try to point out any situation where its useful.
Btw, also this is that fast and easy made that everyone could do it on is own.