[lazarus] Win32 Code Analysis

Cryst cryst at golden.net
Fri Mar 30 16:26:50 EST 2001



> > I wanted to re-compile the fpc in Delphi so I would not loose the
> > cross-platform compatiblity. The first part of the job was renaming all
the
> > .pp files to .pas files. I have no idea why FPC uses .pp as the
extension,
> > but using .pas makes the Delphi compatiablity much more easy. After a
long
> > time renaming files, (I suppose I could have been more effecient) I
started
> > recompiling the fpc under Delphi. Unfortunetly the FPC has all these
> > extensions to the language which makes it not-Delphi compatible.
>
> We see these 'extensions' as useful :)

I don't disagree, however they are not Delphi compatible, which makes it
impossible to use Delphi for debugging. I understand wanting to be
independent but really, it's more useful to be able to debug your code,
which while possible under linux, isn't nearly so easy under windows.

> Using .pp files marks them as files intended for Free Pascal.
> This can be an indication that FPC extensions are used, but this can
> also be useful for instance to be able to start up a different editor
> when double clicking a file in e.g. the windows explorer.

Seems  then that what is wanted is not something that is Delphi compatible,
but is compatible only unto itself.

> And: The compiler does not name the files; it is the programmer that does
> this.

The compiler enforces the names in the uses clause.  I believe this was the
root of all my problems.

> It is always up to the programmer to code compiler-independent, the
compiler
> should not enforce anything.

By the compiler definition, it will enforce code which is compiler
dependent. Using more then one compiler makes the code compiler independent,
which to me seems a worthwhile goal.








More information about the Lazarus mailing list