Array Initialization: Difference between revisions

Content added Content deleted
(initializing array type variables in autohotkey)
Line 55: Line 55:
AutoHotkey does not have arrays yet.
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 '[]'.
However, variables can be set to arbitrary size and pointer operations can be used, simulating arrays. Just without the syntactic sugar of '[]'.
Initialization is as follows:
<lang AutoHotkey>
<lang AutoHotkey>
size = 1000
size = 1000
Line 60: Line 61:
VarSetCapacity(arrayVar, size, value)
VarSetCapacity(arrayVar, size, value)
</lang>
</lang>

=={{header|C++}}==
=={{header|C++}}==