vefatica May 12,846 164 Jun 26, 2020 #1 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
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
rconn Administrator May 13,015 192 Staff member Jun 26, 2020 #2 WAD - but relying on it is sloppy and liable to break as soon as you add anything to the file.
vefatica May 12,846 164 Jun 26, 2020 #3 rconn said: WAD - but relying on it is sloppy and liable to break as soon as you add anything to the file. Click to expand... Thanks. I wasn't planning on relying on it. Just curious.
rconn said: WAD - but relying on it is sloppy and liable to break as soon as you add anything to the file. Click to expand... Thanks. I wasn't planning on relying on it. Just curious.
A AnrDaemon Aug 717 10 Jul 13, 2020 #4 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.
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.