On Mon, 9 Sep 2019 11:44:05 +0200
SPRL AFOR <afors...@gmail.com> wrote:

> Hi.
> 
> Index variable can neither be initialized nor computed. Read 
> https://wiki.lazarus.freepascal.org/FOR..DO

That page only talks about assigning the loop var *inside* the loop,
which is forbidden.

James question is about the difference between an initialized global
var and a non initialized global var.

My guess is that it has to do with the different exe/linker sections
where these vars are put. Hopefully some compiler guru can explain.

Mattias

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to