CONTINUE is not in Rebol2. But it's in Rebol3 and works just fine:
loop 2 [
print {"This'll print", {HostileFork} said.}
continue
print {"This won't print", {HostileFork} said.}
]
You'll get the output:
"This'll print", {HostileFork} said.
"This'll print", {HostileFork} said.
There is no way, as far as I know, to implement a continue in Rebol2.
Okay, building on @DocKimbel's answer a bit, you could do this in Rebol2:
old-loop: :loop
loop: func [count [integer!] block [block!]] [
old-loop count [catch block]
]
continue: does [throw 'continue]
loop 2 [
print {"This'll print", {HostileFork} said.}
continue
print {"This won't print", {HostileFork} said.}
]
Note: the internal implementation method for BREAK and CONTINUE does use the same mechanism as THROW in Rebol...which is relatively lightweight and not exception handling. So important to know is that THROW is not what you should be using for errors...and modern Rebol builds (Ren/C) will not even allow you to throw one. You should use FAIL instead.