Here's two examples... the first does not work, as I think it theoretically should, the second is my work around...
code:
Break ON
Global $Blah[2]
Global $Test[2]
$Blah[0] = 1
$Test[$Blah[0]] = "stuff"
;Basically saying: $Test[1] = "stuff"
? $Test[1]
The '$Test[$Blah[0]] = "stuff"' outputs a "0" and the print line does not output anything.
code:
Break ON
Global $Blah[2]
Global $Test[2]
$Blah[0] = 1
$workaround = $Blah[0]
$Test[$workaround] = "stuff"
;Basically saying: $Test[1] = "stuff"
? $Test[1]
This will only output "stuff".
Everytime I want to do this, I forget that kix does not support it. I know that the $Blah array in '$Test[$Blah[0]] = "stuff"' is being read, because if I do '$Test[$Blah[3]] = "stuff"', I get an "array reference out of bounds" error.
Could this be added to a future kix release? Thanks!