in reply to Re: Paid for crap
in thread Paid for crap

blockquote>VB (pre dotNet anyway) doesnt have a return statement, and normally relies on goto on err type logic for exception handling.

I don't know VB but I find this very surprising; 25 years ago my good ol' Microsoft MSX BASIC 1.0 had subs (that you'd call with GOSUB) and RETURN statements. Of course you couldn't name the subs, you had to rely upon line numbers :)

10 CLS 20 INPUT "choose a number", A$ 30 IF A$>10 GOSUB 100 40 if A$<5 GOSUB 100 50 PRINT "you typed ", A$ 60 END 99 REM the following 2 lines are a subroutine! 100 PRINT "you must enter a number between 5 and 10" 110 RETURN

Wow, I couldn't imagine I remembered that sh*t so well, should have been 20 years :)

Replies are listed 'Best First'.
Re^3: Paid for crap
by demerphq (Chancellor) on Jan 26, 2007 at 13:05 UTC

    Return doesnt return anything in the sense of a modern language would use return, it returns control to the next execution point.

    The moral equivelent of the MS basic 'return' would be 'exit sub' iirc. But this isnt the site for this discussion :-)

    ---
    $world=~s/war/peace/g

      The moral equivelent of the MS basic 'return' would be 'exit sub' iirc. But this isnt the site for this discussion :-)

      But IIRC there is a BASIC parser for Parrot, right? Isn't it the right site to talk about the marvels that we may do using Parrot? :)