Using continue with a label inside another loop causes a DD crash at runtime.
Numbered Steps to Reproduce Problem:
Code Snippet (if applicable) to Reproduce Problem:
mob/verb/CrashMe()
for(var/outer_key in list(1))
outer_loop:
for(var/inner in list(1))
for(var/innermost in list(1))
continue outer_loop
Expected Results:
No crash.
Actual Results:
Crash.
Does the problem occur:
Every time? Or how often? Yes
In other games?
In other user accounts?
On other computers?
When does the problem NOT occur?
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.) Will check soon.
Workarounds: Use a sentinel var
[edit]
I get a crash in the debugger, so there's that. Something does appear to be a little bit off in terms of how the code is compiled. I'm reclassifying this as a compiler error because I don't think the runtime is at all responsible, but I'm adding a sanity check to the runtime regardless.
As far as I can tell this bug is very old. It deals with parts of the compiler that haven't been touched in forever.