[fpc-pascal] Declaration of arrays
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
> 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
> 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 -> hahaha: array[0..9] of integer;
I should have known before.
More information about the fpc-pascal