Flow-control structures: Difference between revisions

Flow-control structures en PureBasic
(Flow-control structures en BASIC256)
(Flow-control structures en PureBasic)
Line 2,088:
1
 
=={{header|Racket}}==
 
=={{header|PureBasic}}==
<lang PureBasic>
OpenConsole()
 
Gosub subrutina
 
bucle:
PrintN("Bucle infinito")
Goto bucle
 
 
subrutina:
PrintN("En subrutina")
Delay(500)
Return
 
CloseConsole()
End
</lang>
 
 
=={{header|Racket}}==
=== exit ===
Racket's <tt>exit</tt> quits the whole process, optionally returning an exit code. Note that there is an <tt>exit-handler</tt> that can be set to intercept such exit attempts.
2,130

edits