Gosub or functions?

Blitz3D Forums/Blitz3D Beginners Area/Gosub or functions?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

10 if x > 10 then
20 gosub 160
25 else if x < 10 then
30 gosub 180
50 end if

this case wont catch if it = 0 then your code executes as sequentially
oh but wait it gets better!

60 //do stuff here
70 gosub 25

oh but wait. what if we add 1 line above line 25. Now we have to go through allllllll of our bloody code to update the goto statements. (depending if you have declaired line numbers or not.

GO SUBS COMPOND SPAGETTI CODING>

im sorry eBusiness. but i cant agreee. obviously you havent worked on any large systems that use more than 40 lines of code .


GO SUB USERS SHOULD BE NAILED TO A TREE!
sorry for the excessive emotion on this one. But try spending !!2 years!! updating code on a project that someone decided to use incorrect gosubs with includes. then talk to me about how it shouldnt '..make things confusing...'

!!!!!!arg... !!!!!!

im so frustrated for even reading that 'use go subs they are cool' response... lol

sorry if i offended anyone.