[fpc-pascal] Feature announcement: default namespacesy
Marco van de Voort
marcov at stack.nl
Sun May 6 17:11:26 CEST 2018
In our previous episode, Marcos Douglas B. Santos said:
> <fpc-pascal at lists.freepascal.org> wrote:
> > [...]
> >
> > In FPC we currently don't use dotted unit names much, but maybe that will
> > change in the future.
>
> Would be good if all units could be prefixed to make a pattern, like
> `fpc.web, fpc.xml, ...` but I know that we need to maintain the
> compatibility with Delphi using the same names...
Yes. And you don't want to keep long lists of all prefixes that you want to
have, so I think it is more for exceptions where there are clashes than for
mass transition to this scheme. To be honest I always found it annoying in
Delphi, and use old names and prefixes as much as possible.
But it does resolves problems like Lazarus currently (afaik) not installing FV
because units conflict.
E.g. The conflicting units can get a prefix lcl. and
Lazarus automatically adds the prefix parameter for projects that use LCL.
Similarly for other packages that have very common names.
Only projects that really use both such packages will have to use the longer
form.
More information about the fpc-pascal
mailing list