nielsAD / lape

Scripting engine with Pascal-like syntax for FPC and Delphi
118 stars 28 forks source link

New Hints Feature, has bug... #95

Closed 3FLLC closed 7 years ago

3FLLC commented 8 years ago
begin
   for var loop:=1 to 1000000 do MakeMask(7);
end.

New HINT from Olly, returns: Variable "loop" not used at line 2, column 20 in file "testhints.p"

ollydev commented 8 years ago

Script sided you don't actually use the variable, but I do see where you're coming from since it's used internally.

Are you aware you can do the following:

for 1 to 1000000 do MakeMask(7);
nielsAD commented 7 years ago

I think this is desired behavior. As @Olly- noted, you don't have to define a variable there.

3FLLC commented 7 years ago

Okay, I will track it down and fix it - I know I can define the var globally, however, when inline, it should not hint.