[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Introducing: Magic Gosub
Ivan X <ivan@ivanx.com> writes:
[...]
> The major thing Magic Gosub does differently is exploit the native
> behavior of the GOSUB command (it uses line 0 by default), leaving
> the ampersand vector free for other uses. But this also yields Magic
> Gosub syntax like "GOSUB @" to mean GOTO, rather than the more
> straightforward &GOTO command in the Core article.
Hey, that is a cool find. I didn't know GOSUB had a default and one
could leave the parameter blank. But sure enough, it works!
0 PRINT "here we are"
1 RETURN
10 GOSUB : GOSUB : PRINT "done"
Run this and you get:
here we are
here we are
done
--
Jerry awanderin at yahoo dot ca