Program termination: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
(Initial FutureBasic task solution added)
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
(One intermediate revision by one other user not shown)
Line 738:
 
=={{header|FutureBasic}}==
Quick and dirty. KillsTerminates everything.
<syntaxhighlight lang="futurebasic">
if condition then end
Line 1,853:
 
The following example illustrates the use of Fiber.suspend in a Wren CLI script.
<syntaxhighlight lang="ecmascriptwren">import "io" for Stdin, Stdout
 
System.write("Do you want to terminate the program y/n ? ")
Line 1,866:
{{out}}
<pre>
$ wren_cli program_terminationProgram_termination.wren
Do you want to terminate the program y/n ? y
OK, shutting down
9,476

edits