http://ahkscript.org/v2/v2-changes.htm wrote: Objects
Numeric strings are now treated as strings, not integers. For instance, x[1] is not equivalent to x[n] where n contains "01" or "1", and the string keys "01" and "1" are no longer equivalent.
I think the two quotes above from the v2-changes doc contradict each other, unless I'm misunderstanding something.http://ahkscript.org/v2/v2-changes.htm wrote: Types
{1:0, "1":0} produces an object with one key-value pair instead of two, since both keys are now interpreted as integers.
Code: Select all
msgbox, %a_ahkversion%
obj := {1:0, "1":0}
for k,v in obj
msgbox, %k%=%v%
[Note from Lexikos: Renamed topic.]