Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Subroutines

Name: FrozenVoid 2009-06-29 3:10

Function Calls vs Goto vs Define Inclusion Functions
Which you prefer? Personally i prefer Gotos, but use function calls for some tasks which require encapsulation.
I rarely use #define functions  because they complicate debugging and are hard to discern from main code.

Name: FrozenVoid 2009-06-29 3:18

Whoops, I forgot my faggot sig.

















________________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: FrozenVoid 2009-06-29 3:20

Here is how i do it in C to split routines into blocks without using function calls

goto end;
start_goto_blocks:;
label_1:;
goto return_label_1:;
label_2:;
goto return_label_2:;
label_3:;
goto return_label_3:;

end_goto_block:;
end:;
_______________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: FrozenVoid 2009-06-29 3:22

>>2 My script has sigs for thread creation disabled(and i like it this way).
If i wanted a sig in OP i'll attach it manually.



_____________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-29 3:43

Lol, this thread reminds me of my first programming language. It was a shitty "BASIC" that was little more than a stripped down high level assembler for a microcontroller. It didn't have proper functions, so I had to pass the arguments into global variables before calling gosub and passed the return values into the same before returning.

Name: FrozenVoid 2009-06-29 3:47

>>5 Actually using goto in many case 'structurizes' the program much more then building functions.
I'm programmed in Qbasic, and when i get to building a moderate to long function(which accesses global vars), i replace it with a goto block. 



______________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-29 4:08

I like it how I see only a single post in this thread.

Name: Anonymous 2009-06-29 6:29

>>7
i see two

Name: Anonymous 2009-06-29 6:32

suckdick.org

Name: Anonymous 2009-06-29 10:06

>>6
I'm programmed in Qbasic
Finally, evidence that FV is just a troll-bot.

Name: FrozenVoid 2009-06-29 10:20

>>10 A troll bot which can pass any Turing test? That would be remarkable.



_______________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-29 10:24

>>11
pass the Turing test
I think you're being a little optimistic. The ability to successfully troll /prog/ doesn't mean you could pass the Turing test.

Name: FrozenVoid 2009-06-29 10:29

>>12 I think you miss the point: if the experts on /prog/ cannot recognize the bot, it passed all Turing tests. 



__________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-29 11:13

>>13
experts on /prog/
I see what you did there

Name: Anonymous 2009-06-29 16:16

And now we can see that this bot can even troll !

Name: Anonymous 2009-06-29 16:16

>>14
I did not.

Name: Anonymous 2010-11-14 2:59

Don't change these.
Name: Email:
Entire Thread Thread List