Jump to content

Multiple distinct objects: Difference between revisions

add FreeBASIC
m (added whitespace.)
(add FreeBASIC)
Line 437:
clone is the important word here to have distinct objects. This creates an array of arrays.
<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}}==
781

edits

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