Indexing a vector with an uninitialized local variable in the update block results in an error.
For example,
update:
j integer
for j in 0 ... n step 1:
x[j] = 99.0 ## doesn't work
In this case, although the variable j is not initialized, the vector indexing should work as j should get the values from the loop. The documentation on the semantics of a local variable needs to be updated as well.
Indexing a vector with an uninitialized local variable in the update block results in an error. For example,
In this case, although the variable
j
is not initialized, the vector indexing should work asj
should get the values from the loop. The documentation on the semantics of a local variable needs to be updated as well.