Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2021-05

-FNsystem

5 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

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

Reply by email

Marco van de Voort
to Mattias Gaertner

Op 2021-05-27 om 13:31 schreef Mattias Gaertner via fpc-pascal:

Show quoted text 5 lines
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?)

Reply by email

Sven Barth
to Mattias Gaertner: 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:

Show quoted text 8 lines
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

Reply by email

Michael Van Canneyt
to Sven Barth
Sven Barth wrote 19 lines
Mattias Gaertner via fpc-pascal schrieb am Do., 27. Mai 2021, 13:32: > 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.

Reply by email