[fpc-pascal] Illegal counter variable?

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Sep 9 11:58:50 CEST 2019


On Mon, 9 Sep 2019 11:44:05 +0200
SPRL AFOR <aforsprl at 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



More information about the fpc-pascal mailing list