Discussion:
[fpc-pascal] -FNsystem
Mattias Gaertner via fpc-pascal
2021-05-27 11:31:51 UTC
Permalink
Hi,

There are some dotted units in fpc, e.g. system.uitypes.
So it would be nice to have -FNsystem in the default fpc.cfg (Delphi
compatible).

What do you think?

Mattias
_______________________________________________
fpc-pascal maillist - fpc-***@lists.freepascal.org
https://
Marco van de Voort via fpc-pascal
2021-05-27 11:45:22 UTC
Permalink
Post by Mattias Gaertner via fpc-pascal
There are some dotted units in fpc, e.g. system.uitypes.
So it would be nice to have -FNsystem in the default fpc.cfg (Delphi
compatible).
What do you think?
In principle yes, but keep in mind that then probably first uitypes must
be deleted from lazarus, so that there are no longer two units that
match "uitypes".  That can happen in lazarus branches that don't have to
support 3.0.4. (which doesn't have -FN)

On Windows I would also add "winapi", just to allow renaming at some
point in the future. Same for "Data" (prefix of fcl-db generic units
like db/dbcommon etc).

Other common ones are web , soap and xml, but afaik those are not
compatible?

VCL units are prefixed with VCL (namespaces:
Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell), so that will be a
problem (stick to compatible VCL, or use LCL?)



_______________________________________________
fpc-pascal maillist - fpc-***@lists.freepascal.org
https://lists.freepa
Sven Barth via fpc-pascal
2021-05-27 12:16:06 UTC
Permalink
Post by Mattias Gaertner via fpc-pascal
Hi,
There are some dotted units in fpc, e.g. system.uitypes.
So it would be nice to have -FNsystem in the default fpc.cfg (Delphi
compatible).
What do you think?
While I agree that adding the namespaces might be a good idea, the fpc.cfg
is not: unlike with Delphi, where it's available as a setting, the fpc.cfg
can't be changed from the IDE. And you can't "unadd" a default namespace,
it needs to be actively removed from the cfg.

Also the less fpc.cfg does automatically for *such* settings the better
(its why we're essentially stuck with enabled C operators as well...).

Regards,
Sven
Michael Van Canneyt via fpc-pascal
2021-05-27 12:28:28 UTC
Permalink
Post by Sven Barth via fpc-pascal
Post by Mattias Gaertner via fpc-pascal
Hi,
There are some dotted units in fpc, e.g. system.uitypes.
So it would be nice to have -FNsystem in the default fpc.cfg (Delphi
compatible).
What do you think?
While I agree that adding the namespaces might be a good idea, the fpc.cfg
is not: unlike with Delphi, where it's available as a setting, the fpc.cfg
can't be changed from the IDE. And you can't "unadd" a default namespace,
it needs to be actively removed from the cfg.
Also the less fpc.cfg does automatically for *such* settings the better
(its why we're essentially stuck with enabled C operators as well...).
I also think that this should not be enabled by default.

Such things should be enabled only when we finally release a
unicode-enabled RTL.

With recent changes by Jonas in fpmake, this can now be created with more ease.

Michael.
_______________________________________________
fpc-pascal maillist - fpc-***@lists.freepascal.org
https://lists.freepasca
Jonas Maebe via fpc-pascal
2021-05-27 18:23:11 UTC
Permalink
Post by Michael Van Canneyt via fpc-pascal
With recent changes by Jonas in fpmake, this can now be created with more ease.
FWIW, I've barely started on the latest proposal for the fpmkunit changes.


Jonas
_______________________________________________
fpc-pascal maillist - fpc-***@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Loading...