Is EOF an implied RETURN?

May 20, 2008
10,563
78
Syracuse, NY, USA
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
 
Aug 23, 2010
581
7
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.