krfkeith / la-pe

Automatically exported from code.google.com/p/la-pe
0 stars 0 forks source link

Nested functions can't be recursive #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A function (or procedure) declared inside a function cannot be recursive or 
call any other nested functions.

Test code here:
procedure Test;
  procedure Woof;
  begin
    Woof;
  end;
  procedure Meow;
  begin
    Woof;
  end;
begin
end;
begin
end.

Commenting out the recursive Woof call then gives the unknown declaration error 
on Meow's call of Woof.

Not sure if this is a bug, a bug/feature, or unsupported functionality, so 
hopefully I'm not being silly.

Original issue reported on code.google.com by mixste...@gmail.com on 23 Mar 2012 at 9:03

GoogleCodeExporter commented 9 years ago
Which version are you using?
I believe this is similar to issue #10.

Original comment by niels....@gmail.com on 24 Mar 2012 at 12:58

GoogleCodeExporter commented 9 years ago
(It appears) you were right. Updated to latest build of Simba and problem went 
away, thanks!

Original comment by mixste...@gmail.com on 24 Mar 2012 at 1:06