Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Is EOF an implied RETURN?

May
13,035
174
I occasionally run into this (when I neglect to end a subroutine with RETURN). EOF works just as well. Is that WAD?

Code:
v:\> type impliedreturn.btm
echo 1
gosub foo
echo 3
quit

:foo
echo 2

v:\> impliedreturn.btm
1
2
3
 
To add: this also works same way in CMD. To return from a subroutine call you have to reach the end of file. One way or another.
 
Back
Top
[FOX] Ultimate Translator
Translate