Creating an Array: Difference between revisions

no edit summary
(Clarified task. Change clarification to "messagebox" format. Mentioned array base.)
No edit summary
Line 144:
// static array
int[5] = [0,1,2,3,4];
 
==[[IDL]]==
[[Category:IDL]]
 
IDL doesn't really distinguish between scalars and arrays - the same operations that can create the one can <i>usually</i> create the other as well.
 
a = 3
help,a
A INT = 3
print,a^2
9
 
a = [3,5,8,7]
help,a
A INT = Array[4]
print,a^2
9 25 64 49
 
==[[Perl]]==
Anonymous user