Memory allocation: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
m (BBC BASIC moved to the BASIC section.)
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
Line 1,857:
 
The only type of memory allocation where the programmer has any control is the initial number of elements of a List though even here additional elements can be allocated by simply adding them.
<syntaxhighlight lang="ecmascriptwren">// create a list with 10 elements all initialized to zero
var squares = List.filled(10, 0)
// give them different values and print them
9,476

edits