User Tools

Site Tools


en:arrays

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
en:arrays [2016/09/08 19:32]
admin
en:arrays [2016/11/07 06:56]
admin
Line 27: Line 27:
 <code> <code>
 a = {1,2,3,4} a = {1,2,3,4}
-dim b = a+dim b = a[]
 </code> </code>
  
Line 42: Line 42:
 a[] fill -1 a[] fill -1
 </code> </code>
 +
 +==== Passing Arrays of Data to Builtin Functions and Statements ====
 +
 +When passing an array of data, like to the [[sound|sound]] statement, you must include an empty set of brackets [] after the variable name.  This was added to reduce the confusion between a regular variable and a variable containing an array of values.
  
 ==== History ==== ==== History ====
 |1.99.99.55|added dim logic to copy one array to another| |1.99.99.55|added dim logic to copy one array to another|
 |1.99.99.57|added the fill assignment operator| |1.99.99.57|added the fill assignment operator|
 +|1.99.99.72|added the array passing note|
en/arrays.txt ยท Last modified: 2020/04/21 18:29 by admin