[fpc-devel] for cycle variable

Rimgaudas Laucius rimga at ktl.mii.lt
Sat May 7 16:37:59 CEST 2005


Hi,

 

i found that in fpc 1.9.6 assignment to "for cycle" variable is forbidden. Such behavior is incompatible with other compilers. Earlier fpc versions also had only warning. What do you think about this? 


var
  i: integer;
begin
  for i:= 1 to 2 do
    inc(i);
end.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20050507/bd35fb36/attachment.html>


More information about the fpc-devel mailing list