02-28-2006, 03:17 AM
GOTO's, ah, I used to use those those then I was showed the light of loops and SUB's.
Need help in making table..
|
02-28-2006, 03:17 AM
GOTO's, ah, I used to use those those then I was showed the light of loops and SUB's.
02-28-2006, 06:02 AM
could someone help me write equivalent functioning code without GOTO's?
Code: Function check_against( o As char_type Ptr, othr As char_type Ptr, check As Integer, d As Integer )
03-03-2006, 07:04 AM
?
Shouldn't this be in a new thread? If you make standard capitalization, get rid of all the tabs, spaces, "_"s, and "->"s, I will consider it... :king:
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
03-03-2006, 11:04 AM
for one, its freebasic., so ph34R. second of all its a *flow* problem, not a *syntax* problem. i posted it as basically a joke, i would almost be willing to be money you can't come up with a more elegant solution (that won't cause bugs in my engine)
03-03-2006, 08:02 PM
Yes it is a syntax problem, because I can't analyze the flow without understanding your code. And your coding style is an abberation upon humanity... :x
I'm sure I could get rid of the GOTOs and make it much better code if I knew what the heck was going on.... baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaahhhhhhhhhhhhh..............
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
03-03-2006, 08:14 PM
Oi...get over the anti-GOTO kick, people. And cha0s, enough of the FB-pushing...we all know you sleep with a hard copy of the FB manual as a child would with a teddy bear, but this is getting ridiculous...
When someone asks for QB help, they want QB help, not FB help.
\__/)
(='.'=) Copy bunny into your signature to (")_(") help him gain world domination.
03-04-2006, 08:13 AM
Yeah, that's telling him, Nec.
*****
03-04-2006, 04:08 PM
obviously its difficult to tell from that snippet, but to me both gotos look redundant, because even if the condition they rely on it not met, they will still step to the same code.
Code: If condition Then
03-05-2006, 02:09 AM
dingdingding, thanks for playing! nek and aga You Lose o.o
edit: its not that simple. Code: If othr[check].anim[othr[check].current_anim].frame[othr[check].frame_check].faces = 0 Then look at the values. if othr[check].anim[othr[check].current_anim].frame[othr[check].frame_check].faces = 0 then, if there is no goto, the FOR..NEXT loop will be skipped. if that value is 0 the loop must be manually entered.. see the problem?
03-05-2006, 11:17 AM
I just go semi-blind looking at it, it's not my fault..
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest. |
« Next Oldest | Next Newest »
|