Difference between revisions of "Talk:Label"
Jump to navigation
Jump to search
no edit summary
imported>Diarrhoe |
imported>DragoonWraith |
||
Line 36: | Line 36: | ||
end | end | ||
Does the message also occur in GameMode? Can't imagine that, since it would make those blocktypes useless, but it's left open in the article.<br>[[User:Diarrhoe|Diarrhoe]] 12:09, 5 May 2011 (EDT) | Does the message also occur in GameMode? Can't imagine that, since it would make those blocktypes useless, but it's left open in the article.<br>[[User:Diarrhoe|Diarrhoe]] 12:09, 5 May 2011 (EDT) | ||
:# No, Label needs to be run before Goto in a give run-through of a script for the Goto to work. Also, this would be a generally bad idea, from the perspective of good coding practices. See [http://en.wikipedia.org/wiki/Go_To_Statement_Considered_Harmful ''Go To Statement Considered Harmful] for the most famous criticism of label/goto — the only reason we have it at all, I suspect, is because While was not available originally. Note that it ''is'' viable, and the linked page will discuss how some programmers disagree, nonetheless goto is considered a major potential problem in any code it is used in. See also: [http://xkcd.com/292/ humorous graphical explanation] | |||
:# I have absolutely no idea, but for the same reasons that Goto is ''usually'' bad, that use strikes me as ''awful''. That would make your code an ''absolute nightmare'' to read/follow. | |||
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 17:18, 6 May 2011 (EDT) |