<div dir="ltr">Trying to get some arithmetic done over arrays. I was testing a simple Swift script as follows:<div><br></div><div><div>int A[] = [1,1,1];</div><div>int B[] = [2,2,2];</div><div><br></div><div>foreach b,i in B{</div>
<div> tracef("A[%i] is %i.\n",i, A[i]);</div><div> tracef("B[%i] is %i.\n",i, B[i]);</div><div>}</div></div><div><br></div><div><div>Progress:  time: Wed, 03 Apr 2013 17:18:13 -0400</div><div>A[2] is 1.</div>
<div>A[0] is 1.</div><div>A[1] is 1.</div><div>Execution failed:</div><div><span class="" style="white-space:pre">  </span>org.griphyn.vdl.mapping.InvalidPathException: Invalid path ([1]) for B[1]:int = 2 - Closed</div><div>
<span class="" style="white-space:pre">       </span>swiftscript:tracef, test.swift, line 6</div><div><br></div></div><div style>Wondering if this should fail and why.</div><div><br></div><div style>Thanks,</div><div>-- <br><font face="'courier new', monospace">Ketan</font><br>
<br>
</div></div>