Bug in nested loop CAS break/continue [n]
|
11-19-2018, 10:31 PM
(This post was last modified: 11-20-2018 06:37 AM by Laka.)
Post: #1
|
|||
|
|||
Bug in nested loop CAS break/continue [n]
Hey guys, just trying to contribute a bit. I really do like my HP Prime but have recently found an issue.
When using the break or continue statements in both Home and CAS modes, nested loops will show the same effect, e.g. when you use this in home mode: Code: export TestContHome() Or, the same in CAS mode: Code: #cas You will get the same result: Code: a=1,b=1 But if you use the optional [n] parameter to break out to the the outer loop, the result is different. Try replacing the continue statement like this (to get you to the outer level): Code: if even(b) then CONTINUE 2; end; In Home mode, the result is as expected, bypassing the inner loop: Code: a=1,b=1 But in CAS mode, this CONTINUE statement is totally ignored, giving this output: Code: a=1,b=1 This applies both to BREAK and CONTINUE, so I am suspecting a CAS bug. Just to clarify, when using BREAK 2 instead of CONTINUE 2, in Home mode you will get: Code: a=1,b=1 Code: a=1,b=1 I am running Build 2.1.14181. Maybe I am overlooking something, but I would really like to know. Regards, Dag |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Bug in nested loop CAS break/continue [n] - Laka - 11-19-2018 10:31 PM
RE: Bug in nested loop CAS break/continue [n] - parisse - 11-20-2018, 06:32 AM
RE: Bug in nested loop CAS break/continue [n] - Laka - 11-20-2018, 06:53 AM
RE: Bug in nested loop CAS break/continue [n] - toml_12953 - 11-22-2018, 08:14 AM
|
User(s) browsing this thread: 1 Guest(s)