Flow-control structures: Difference between revisions
Content added Content deleted
(→{{header|Pop11}}: Added PureBasic) |
|||
Line 679: | Line 679: | ||
Remark: Pop11 does not perform "tail call optimization", one has to explicitly use chain. |
Remark: Pop11 does not perform "tail call optimization", one has to explicitly use chain. |
||
=={{header|PureBasic}}== |
|||
===goto=== |
|||
Transfers control to the label referenced. It is not a safe way to exit loops. |
|||
<lang PureBasic>If OpenConsole() |
|||
top: |
|||
i = i + 1 |
|||
PrintN("Hello world.") |
|||
If i < 10 |
|||
Goto top |
|||
EndIf |
|||
Print(#CRLF$ + #CRLF$ + "Press ENTER to exit") |
|||
Input() |
|||
CloseConsole() |
|||
EndIf </lang> |
|||
=={{header|Python}}== |
=={{header|Python}}== |