Flow-control structures: Difference between revisions
Content added Content deleted
(Flow-control structures en PureBasic) |
(Flow-control structures en FreeBASIC) |
||
Line 851: | Line 851: | ||
====Response==== |
====Response==== |
||
A thorough analysis of the problem appears in ''Structured Programming with'' '''go to''' ''Statements'' by Donald E. Knuth, December 1974. There's even mention of decision tables. |
A thorough analysis of the problem appears in ''Structured Programming with'' '''go to''' ''Statements'' by Donald E. Knuth, December 1974. There's even mention of decision tables. |
||
=={{header|FreeBASIC}}== |
|||
FreeBASIC has GOSUB and GOTO but they are obsolete. |
|||
Still, they are available when using the -lang qb dialect. |
|||
This dialect provides the best support for the older QuickBASIC code. |
|||
<lang freebasic> |
|||
'$lang: "qb" |
|||
Gosub subrutina |
|||
bucle: |
|||
Print "Bucle infinito" |
|||
Goto bucle |
|||
End |
|||
subrutina: |
|||
Print "En subrutina" |
|||
Sleep 100 |
|||
Return |
|||
Sleep |
|||
</lang> |
|||
=={{header|Gambas}}== |
=={{header|Gambas}}== |