RETURN label

4

moechofe 2026-04-08 08:07

I just learn that RETURN can take a label as argument.

:facepalm:, If I knew this earlier.


wryhode 2026-04-08 09:28

incredible technology!! now if only variables could store label references...


Timo 2026-04-10 13:32

Imagine a BASIC program where you actually understand the execution flow. Nobody wants that! ;P


moechofe 2026-04-11 13:57 (Edited)

don't try this at home:

sub ga
  'bu id local to ga
  bu$="gabu"
  print "bu$",bu$
  gosub zome
  print "bu$",bu$
end sub

call ga
end

zome:
  'bu isn't declare, but scope is conserved during call
  mid$(bu$,0,4)="zome"
  return


Log in to reply.