Jump to content

Create a two-dimensional array at runtime: Difference between revisions

→‎{{header|AppleScript}}: Noted an incorrect comment and a coding error
(→‎{{header|AppleScript}}: Noted an incorrect comment and a coding error)
Line 106:
set array to {}
</lang>
 
To correct the last comment in the script above: when a script's run, the values of its properties, globals, and run-handler (''ie.'' top level) variables are saved back to the script file when the execution finishes. So variables containing bulky values like lists ideally ''should'' be set to something smaller before the end in order to prevent file bloat. Or local variables could be used, which would be the better option above as the <code>return</code> statement prevents the last line from being executed anway.
 
=={{header|AutoHotkey}}==
557

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.