Hello,
My friend Josep Maria Blasco have found a possible error referring to indexed
variables. I copy two little programs to illustrate the problem. Note the unique
difference is the use of "exists" method...
Thanks in advance for your feedback,
Francesc Roses & Josep Maria Blasco
------------------------------------ cut here ------------------------------------
-- In my compter at iteration 95199 crashes:
-- java.lang.OutOfMemoryError: netrexx.lang.Rexx
-- at netrexx.lang.Rexx.getnode(Compiled Code)
-- at stem.main(Compiled Code)
Parse Arg NumIterat .
If NumIterat = '' Then Do
NumIterat = 100000
Say "By default" NumIterat "iterations"
End
aStem = Rexx 0
Loop i = 1 To NumIterat
If AStem[i] = 0 Then NOP
Say i
End i
------------------------------------ cut here ------------------------------------
------------------------------------ cut here ------------------------------------
-- The program ends correctly
Parse Arg NumIterat .
If NumIterat = '' Then Do
NumIterat = 100000
Say "By default" NumIterat "iterations"
End
aStem = Rexx 0
Loop i = 1 To NumIterat
If AStem.exists(i) Then NOP
Say i
End i
------------------------------------ cut here ------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>