[fpc-pascal] Declaration of arrays

Rainer Stratmann rainerstratmann at t-online.de
Wed Jun 19 00:00:16 CEST 2013

 On Tuesday 18 June 2013 23:47:11 you wrote:
> For making porting code from other Pascal compilers easier fpc supports
> the modes (Delphi, TP, MacPas, ...). Do you think it is worth to add a
> new mikroPascal mode or modeswitch?

Don't think that complicated.
For this 'revolutionary' feature there is no compiler switch necessary. 
Neither will it have influence on compatibility. Neither is it that difficult to 
> > Like in C.
> > That would make migration from C to Pascal easier.
> > Is it posssible to integrate this in Freepascal also?
> Compiling other languages syntax is not the goal of a Pascal
> compiler.
> C to Pascal converters have this goal.

> Minimising the amount of required background knowledge and making
> everything self-explanatory is a fundamental part of the Pascal
> philosophy.

> Adding redundancy to a language is seldom a good idea.

> migration is
> easier but people might make mistakes when reading the code.

> well, to be honest, int hahaha[10] -> hahaha: array[0..9] of integer;

I should have known before.

Stupid me.

More information about the fpc-pascal mailing list