Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, howardR), 472 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Improve goto (no really!) [Re: Hummel] #404179
07/04/12 08:36
07/04/12 08:36
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Standard C goto is on our list. It's indeed sometimes useful for error handlers and so on.

Re: Improve goto (no really!) [Re: jcl] #404182
07/04/12 09:25
07/04/12 09:25
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
T
Tempelbauer Offline
Expert
Tempelbauer  Offline
Expert
T

Joined: Feb 2005
Posts: 3,687
Hessen, Germany
goto is a dance with the devil. you will be seduced by him, to reach your aims with just a few steps. but if you dance to much with him, you will get dizzy and donīt know anymore where is up and down. and then you and your project will fall on your knees.

Quote:
Standard C goto is on our list. It's indeed sometimes useful for error handlers and so on.

i hope you all can dance (i can laugh ). if not, subscribe to a salsa course: Go To Considered Harmful

Re: Improve goto (no really!) [Re: Tempelbauer] #404195
07/04/12 13:14
07/04/12 13:14
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
No risk, no fun!


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Improve goto (no really!) [Re: Superku] #404220
07/05/12 06:35
07/05/12 06:35
Joined: Apr 2008
Posts: 650
Sajeth Offline
User
Sajeth  Offline
User

Joined: Apr 2008
Posts: 650


Teleschrott-Fan.
Re: Improve goto (no really!) [Re: Sajeth] #404232
07/05/12 10:47
07/05/12 10:47
Joined: Jan 2003
Posts: 4,305
Damocles Offline
Expert
Damocles  Offline
Expert

Joined: Jan 2003
Posts: 4,305
as shown goto is a quick way to exit the loop "tree".

The alternative is to introduce many breaks and a checking variable and conditions for
each loop.
..Or somehow set the loops conditionvariables to have the conditions be all false
(thus having redundant declarations about the cutoff, causing
potential problems when changing the boundaries and forgetting to adjust the other cutoff)

Now wich solution is easier to understand (and thus less error prone) ?


When someone knows how to use it, goto is totally fine.


Re: Improve goto (no really!) [Re: Damocles] #442092
06/10/14 22:17
06/10/14 22:17
Joined: Sep 2003
Posts: 303
Germany
Clemens Offline
Senior Member
Clemens  Offline
Senior Member

Joined: Sep 2003
Posts: 303
Germany
Btw, why exactly was the old GOTO command removed at all?

Page 2 of 2 1 2

Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1