Having trouble with nsArray
I downloaded and installed the nsArray plugin. I compiled the example executable and ran it.
This is the code in the example:
nsArray::New MyArray
nsArray::Set MyArray 11 14 /key=4 meh blah /key=jajaj 9 /end
nsArray::ToString MyArray
Pop $R0
DetailPrint `MyArray = {$R0}`
nsArray::Get MyArray 0 1 4 5 jajaj /end
Pop $R0
DetailPrint `MyArray[0] is $R0`
Pop $R0
DetailPrint `MyArray[1] is $R0`
Pop $R0
DetailPrint `MyArray[4] is $R0`
Pop $R0
DetailPrint `MyArray[5] is $R0`
Pop $R0
DetailPrint `MyArray[jajaj] is $R0`
This is the output:
MyArray = {0 => 11, 1 => 14, 4 => meh, 5 => blah, jajaj => 9}Shouldn't the output be this:
MyArray[0] is
MyArray[1] is 0
MyArray[4] is 1
MyArray[5] is 4
MyArray[jajaj] is 5
MyArray = {0 => 11, 1 => 14, 4 => meh, 5 => blah, jajaj => 9}
MyArray[0] is 11
MyArray[1] is 14
MyArray[4] is meh
MyArray[5] is blah
MyArray[jajaj] is 9