Multiple distinct objects: Difference between revisions
Content added Content deleted
m (added whitespace.) |
(add FreeBASIC) |
||
Line 437: | Line 437: | ||
clone is the important word here to have distinct objects. This creates an array of arrays. |
clone is the important word here to have distinct objects. This creates an array of arrays. |
||
<lang factor>1000 [ { 1 } clone ] replicate</lang> |
<lang factor>1000 [ { 1 } clone ] replicate</lang> |
||
=={{header|FreeBASIC}}== |
|||
The value of n can be determined at runtime, and the array is automatically initialized to zeroes. |
|||
<lang freebasic>dim as foo array(1 to n)</lang> |
|||
=={{header|Forth}}== |
=={{header|Forth}}== |