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

Mailing lists / fpc-pascal / 2021-05
5 messages · 5 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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
Op 2021-05-27 om 13:31 schreef Mattias Gaertner via fpc-pascal:
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?)
There are some dotted units in fpc, e.g. system.uitypes. So it would be nice to have…
Mattias Gaertner via fpc-pascal schrieb
am Do., 27. Mai 2021, 13:32:
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
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.
Michael Van Canneyt wroteWith 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