No Gosub in BlitzMax?

BlitzMax Forums/BlitzMax Beginners Area/No Gosub in BlitzMax?

Just a very quick question is it true there is no longer gosub in Blitzmax?

A quick yes/no would be great for anyone who knows.

Thanks.

no.

Just a very quick question is it true there is no longer gosub in Blitzmax?


no.
Actually, yes, its true. There is no Gosub in Blitzmax.

Thanks.

A gosub is just like a Function isn't it?

"A gosub is just like a Function isn't it?"

Kinda, may coding style us totally gosub based. It was part of Blitz's attraction to me. Not a big deal, Blitz 3d will be around for a while yet so plenty of time for me to find a replacement language.

What have you been using before Blitz? Just curious.

Nothing, I got back into coding (after a ten year break) just becase Blitz was so old school and easy to use :)

You choose your language based on whether it has gosub or not? o_O

Beaker, yeah :)

I know its kind of strange. But old dogs and habits. Anyhow no big deal, I just use Blitz to play around with and make mini games and B3d will be around for a while so its not like its an impending problem for me.

Thanks everyone for the reponses, its appreciated. I dont want to derail the B3d forum with my OT topic.

Goto Blah

This won't happen

#Blah

Works for me.

1) Not in strict mode.
2) Besides he was asking for gosub.

Anyway, no BlitzMAX does not have a Gosub statement, and yes Functions are functionally equivalent (no pun intended).

1) Not in strict mode.


Ooh, never noticed that.

2) Besides he was asking for gosub


Ha ha... Well that's what happens when you post past your bed time ;)

Actually I have a blind spot for Gosubs, since I've never used it in any version of Blitz to date.

I havne't used gosub since 1987. :)

Gosub should be made ilegal. Reminds me of programming basic on the acorn/bbc had to number every f**kin line.

Reminds me of when I used to get 2 program lines with the same number on the Oric-1
10 Print "Hello"
20 goto 10
20 goto 10
30 Rem oops...O.o


For God's sake, learn what a function is. It takes little more effort than a gosub does.

Terabit - I've learned your secret! - GOTOs!

I'm going to go back now and rewrite everything I've ever written, and be as clever as you!

I like the notion of preserving the ideological difference between subroutines and functions - doesn't C only muddle them to keep the keyword count down? [Runs away and hides]