[fpc-pascal] private integer is an illegal counter variable

Juha Manninen juha.manninen at phnet.fi
Sat Nov 28 00:23:56 CET 2009

On lauantai, 28. marraskuuta 2009 00:49:25 Jonas Maebe wrote:
> On 27 Nov 2009, at 23:43, Juha Manninen wrote:
> > I understand it is important to support also the old shortstring but it
> > should be defined explicitly and "string" should always mean just one
> > thing.
> ansistring and shortstring always mean just one thing. "string" originally
>  meant shortstring in Turbo Pascal, and in Delphi it means shortstring with
>  {$h-} and ansistring with {$h+} (and {$h+} is the default in Delphi and in
>  FPC's Delphi mode).

So {$h+} is the important part here. Ok, I partly misunderstood the settings.

From Mattias:
> Then you will loose some fpc features.

fpc mode requires more strict syntax with function pointers (event handler 
assignment). It doesn't sound like a big deal. What else? I must study this 
little more.


More information about the fpc-pascal mailing list