On 06/07/2021 14:13, Wolfgang Lenerz via Ql-Users wrote:
Hi Per,
an interesting pitfall, thanks for pointing that out.
It does seem that Qlib sets the value of the repeat loop control
variable to 0 at the start of the loop.
Do you know how this fares on plain QDOS, not SMSQE?
Regards
Hi Per,
an interesting pitfall, thanks for pointing that out.
It does seem that Qlib sets the value of the repeat loop control
variable to 0 at the start of the loop.
Do you know how this fares on plain QDOS, not SMSQE?
Regards
Wolfgang
> I dont know if this has been documented anywhere,
I have encountered this before, but, like Bob said, assumed it was just a
question of a new type of variable being set up. In other words, I assumed
I was doing something wrong and simply avoided whatever was happening.
Dilwyn
On Tue, 6 Jul 2021, 11:55 Bob Spelten via Ql-Users, <
pjwitte via Ql-Users wrote:
I dont know if this has been documented anywhere, but Im putting it out
here as it caused me some grief.
It appears that Q-Liberator zeroes the loop variable on entry to a loop.
The following demo, which is acceptable (although perhaps not very
elegant) S*BASIC,