Creating an Array: Difference between revisions

m
Alphabetic ordering of languages
(arrays in autohotkey)
m (Alphabetic ordering of languages)
Line 85:
set any to {1, "foo", 2.57, missing value, ints}
'''Bold text'''
 
=={{header|AutoHotkey}}==
AutoHotkey does not have arrays yet.
However, variables can be set to arbitrary size and pointer operations can be used, simulating arrays. Just without the syntactic sugar of '[]'.
<lang AutoHotkey>
size = 1000
value = 0
VarSetCapacity(arrayVar, size, value)
</lang>
 
=={{header|AWK}}==
Line 108 ⟶ 117:
myArray(1,1) = "Item1"
myArray(1,2) = "Item2"
=={{header|AutoHotkey}}==
AutoHotkey does not have arrays yet.
However, variables can be set to arbitrary size and pointer operations can be used, simulating arrays. Just without the syntactic sugar of '[]'.
<lang AutoHotkey>
size = 1000
value = 0
VarSetCapacity(arrayVar, size, value)
</lang>
 
=={{header|C}}==
Anonymous user