Jump to content

Jump anywhere: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
(Omit Insitux)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 3,476:
 
The Fiber class also has a ''try'' method for catching errors (which won't be described here) and a static ''abort'' method which (unless caught) exits the script altogether if an error occurs.
<syntaxhighlight lang="ecmascriptwren">var func = Fn.new {
for (i in 1..10) {
if (i == 1) continue // jumps to next iteration when 'i' equals 1
Line 3,514:
resuming
aborting
[./jumpJump_anywhere line 17] in new(_) block argument
</pre>
 
9,485

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.