| 08-10-2006, 01:53 PM | #1 |
Strings have the same issue as reals with the return bug. JASS:function s2i takes string s returns integer return s return 0 endfunction function i2s takes integer i returns string return i return "" endfunction function funA takes nothing returns nothing local integer k=s2i("a"+"b") local integer i=90 local string b call BJDebugMsg(I2S(k)+" "+i2s(k)) set b=i2s(k) call BJDebugMsg(I2S(k)+" "+b) endfunction The result is (null) then "23 ab" |
| 08-11-2006, 06:08 PM | #2 |
Is this the only reason for the string/integer typecast problem, or are strings actually recycled or somehow else changing indexes during the game (as it was posted before)? |
| 08-11-2006, 09:21 PM | #3 |
I dont know how Vexorian changes ID's inside his tests, but it is not real. "MyDota" ReadSetup module and array based storage uses this and game was fast and stable. And no indexes losing was detected. But game was unable to load after save, strings changes its indexes, game try to get it and crush. |
| 08-11-2006, 09:39 PM | #4 | |
Either way because of the load bug return bug on strings is unusable. Quote:
Pipedream got it to fail as well on patch 1.20c , it is not likelly that was repaired in 1.20d |
| 08-12-2006, 08:34 AM | #5 | |
Quote:
Or 1.20e. |
