Code Block |
---|
set obj [objarray new_from_to |
...
<type> <from> <to>] |
Allocate an array of type $type filled with integer-like values increasing from $from to $to
<type>: chararray shortarray intarray longarray longlongarray floatarray doublearray
<from> arbitrary integer value
<to> arbitrary integer value greater or equal than <from>
e.g.
Code Block |
---|
set obj [objarray new_from_to <type>intarray <from>-3 <to>]2] -> -3 -2 -1 0 1 2 |