No Gosub in BlitzMax?

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

Rodvik(Posted 2005) [#1]
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.


po(Posted 2005) [#2]
no.


GfK(Posted 2005) [#3]
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.


Rodvik(Posted 2005) [#4]
Thanks.


n8r2k(Posted 2005) [#5]
A gosub is just like a Function isn't it?


Rodvik(Posted 2005) [#6]
"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.


n8r2k(Posted 2005) [#7]
What have you been using before Blitz? Just curious.


Rodvik(Posted 2005) [#8]
Nothing, I got back into coding (after a ten year break) just becase Blitz was so old school and easy to use :)


Beaker(Posted 2005) [#9]
You choose your language based on whether it has gosub or not? o_O


Rodvik(Posted 2005) [#10]
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.


TeraBit(Posted 2005) [#11]
Goto Blah

This won't happen

#Blah

Works for me.


FlameDuck(Posted 2005) [#12]
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).


TeraBit(Posted 2005) [#13]
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.


Kanati(Posted 2005) [#14]
I havne't used gosub since 1987. :)


skn3(Posted 2005) [#15]
Gosub should be made ilegal. Reminds me of programming basic on the acorn/bbc had to number every f**kin line.


Shambler(Posted 2005) [#16]
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



Warren(Posted 2005) [#17]
For God's sake, learn what a function is. It takes little more effort than a gosub does.


John Blackledge(Posted 2005) [#18]
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!


Sledge(Posted 2005) [#19]
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]