[fpc-devel] Purpose of "uses ... in"?
Marco van de Voort
marcov at stack.nl
Mon Jul 12 21:26:20 CEST 2010
In our previous episode, Hans-Peter Diettrich said:
> Michael Van Canneyt schrieb:
> > The cure is far worse than the problem, because it is still trying to
> > combine 2 systems that are basically incompatible.
> > Bottom line is: don't use 'in' for the uses clause; use the command-line
> > option to specify the location of the sources.
> Then we could start by immediately flagging all uses of "in" as
> deprecated, unless e.g. TP7 or Delphi mode is selected. When the users
> can demonstrate that they still need such a feature, we could think
> again about other (more compatible) solutions for not yet covered
> special cases, before dropping it from the FPC syntax.
See http://www.stack.nl/~marcov/porting.pdf paragraph 7 ("avoid paths...")
I originally wrote that in 2003-2004.
Even for portability purposes it often doesn't work, since usually the build
systems and files for FPC/Lazarus and Delphi differ anyway (and you noticed
the working dir difference)
More information about the fpc-devel