SRL Archive - General

label: and goto:


WT-Fakawi

2006-06-08 18:50:19

I know that label: and goto: work in Delphi. I have never seen any in Scar…Is it possible to use Label: and Goto calls, and if so, how would I invoke these?

Bad practice, yeah yeah, but I am writing a Barbarian Agility Trainer now, and I need easy jumps, crash resets and tight loops :D
They only neat alternative is forward all functions ….

shaunthasheep

2006-06-08 19:11:12

here you go u scrub *ahh dont ban me* :)




program New;

label GoToLabel;

begin
GoTo GoToLabel;
Writeln('We Skipped This Part');

GoToLabel:
Writeln('Hi');
end.

*cough *

Starblaster100

2006-06-08 19:24:58

From: The_Rs_Monkey
here you go u scrub *ahh dont ban me* :)




program New;

label GoToLabel;

begin
GoTo GoToLabel;
Writeln('We Skipped This Part');

GoToLabel:
Writeln('Hi');
end.

*cough *


Very nice. We learn new things every day :)

I remember first post=p

2006-06-08 19:33:32

Lol, rep for that :rolleyes:

WT-Fakawi

2006-06-08 19:47:00

TY!

I was looking for this:

[php]program New;

label Label1;
label Label2;

begin
GoTo Label1;
Writeln('We Skipped This Part');

Label2:
Writeln('Yes we do.');

Label1:
Writeln('Do we Loop?');
GoTo Label2;
end.[/php]

shaunthasheep

2006-06-08 19:57:31

google -> "Delphi Goto and label command" -> im feelling lucky,

thats all u had to do :P

phantombmx

2006-06-08 21:32:42

yeah the other day i accidentally typed goto and it went bolded.. but im used to like flash actionscript GoToLine(line).. didnt work in scar.. well now i can use this :)

canadarules

2006-06-08 22:26:38

Does GoTo work on line numbers, like in some other languages?

mike2055

2006-06-08 22:32:24

From: The_Rs_Monkey
google -> "Delphi Goto and label command" -> im feelling lucky,

thats all u had to do :P


Better yet try this google -> miserable failure -> I'm feeling lucky, try that and see what you get…

Cruel

2006-06-08 22:55:52

From: canadarules
Does GoTo work on line numbers, like in some other languages?
GoTo wouldn't… and I don't think you could even do that unless kait added something special. Being a scripting language, that'd be possible to do though… :/

Pwnd

2006-06-09 00:17:47

You can use Forward too!

The Prince of Randomness?

2006-06-09 00:57:09

what about Default?

Renax

2006-06-09 21:48:37

forward has already been used for awhile pwnd, its in srl :)