DeSnob
2010-06-11 07:58:13
I've seen things like
Procedure TickleMyPickle; Forward; What is the forward used for?
2010-06-11 07:58:13
Procedure TickleMyPickle; Forward; What is the forward used for?
2010-06-11 08:09:10
program New;
procedure test;
begin
test2;
end;
procedure test2;
begin
WriteLn('hoi');
end;
begin
test;
end.
program New;
procedure test2; forward;
procedure test;
begin
test2;
end;
procedure test2;
begin
WriteLn('hoi');
end;
begin
test;
end.
2010-06-11 08:11:04
porgram ForwardExample;
function Num3: string; forward;
procedure Num1;
begin
WriteLn(Num3);
end;
function Num2: string;
begin
Result := 'Boo!...';
end;
function Num3: string;
begin
Result := Num2;
end;
2010-06-11 08:14:22
2010-06-11 08:21:09
From: DeSnob
Thanks! I just found out that'll be extremely useful in my script! :)
2010-06-11 08:26:54
From: Dgby714
Its good practice not to use it =) most of the time you can just rearrange procedures
2010-06-11 08:30:55