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

Content added Content deleted
(→‎{{header|AppleScript}}: Noted an incorrect comment and a coding error)
m (→‎{{header|AppleScript}}: Typo correction.)
Line 107: Line 107:
</lang>
</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.
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 anyway.


=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==