Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-08 Thread Graeme Geldenhuys
On 2018-05-06 14:45, Vojtěch Čihák wrote: > LCLIntf, LCLProc, LCLType isn't enough? I will use dotted units only if > there will be absolutely no other way around. > > I believe it can be useful but I don't think it's "must have" (when I > don't consider Delphi compat.).  > No, it's not a "must

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-07 Thread Mattias Gaertner
On Mon, 7 May 2018 21:49:26 +0200 Sven Barth via fpc-pascal wrote: > Am 07.05.2018 um 10:35 schrieb Mattias Gaertner: > >> [...] > >> The compiler is told about a default namespace using the new -FN > >> parameter, > > Lazarus now checks for the -FN flag in the

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-07 Thread Sven Barth via fpc-pascal
Am 07.05.2018 um 10:35 schrieb Mattias Gaertner: [...] The compiler is told about a default namespace using the new -FN parameter, Lazarus now checks for the -FN flag in the custom compiler options. Can you add a message similar to "Using unit path:"? Then Lazarus can find out what default

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-07 Thread Sven Barth via fpc-pascal
Marco van de Voort schrieb am Mo., 7. Mai 2018, 11:51: > In our previous episode, Sven Barth via fpc-pascal said: > > > > > > I'm not sure what are 'all similar -F parameters', but many -F > parameters > > > allow multiple semicolon separated values. > > > > Done in r38939. :) >

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-07 Thread Marco van de Voort
In our previous episode, Sven Barth via fpc-pascal said: > > > > I'm not sure what are 'all similar -F parameters', but many -F parameters > > allow multiple semicolon separated values. > > Done in r38939. :) Delphi uses semicolons :-) ___ fpc-pascal

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-07 Thread Sven Barth via fpc-pascal
Mattias Gaertner schrieb am Mo., 7. Mai 2018, 10:35: > On Sat, 5 May 2018 19:23:04 +0200 > Sven Barth via fpc-pascal wrote: > > >[...] > > I'm pleased to announce the implementation of a new feature: default > > namespaces. > > Nice! >

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-07 Thread Mattias Gaertner
On Sat, 5 May 2018 19:23:04 +0200 Sven Barth via fpc-pascal wrote: >[...] > I'm pleased to announce the implementation of a new feature: default > namespaces. Nice! Dotted unit names without that felt so stupid. >[...] Nevertheless the prefix of such a unit

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Sven Barth via fpc-pascal
Am 05.05.2018 um 19:53 schrieb Tomas Hajny: On Sat, May 5, 2018 19:23, Sven Barth via fpc-pascal wrote: Hi Sven, . . (e.g. "MyUnits" or "FCL.XML" or "FCL.Web.Base"). Like with all similar -F parameters -FN only takes a single value, but can be specified multiple times. . . I'm not

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Marcos Douglas B. Santos
On Sun, May 6, 2018 at 10:45 AM, Vojtěch Čihák wrote: > i, > > LCLIntf, LCLProc, LCLType isn't enough? I will use dotted units only if > there will be absolutely no other way around. There are many others without LCL prefix... > I believe it can be useful but I don't

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Vojtěch Čihák
at.).    V. __ Od: "Marcos Douglas B. Santos" <m...@delfire.net> Komu: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org> Datum: 06.05.2018 15:34 Předmět: Re: [fpc-pascal] Feature announcement: default namespaces On Sun, May 6, 2018 at 4:40 AM, Sven

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Marcos Douglas B. Santos
On Sun, May 6, 2018 at 4:40 AM, Sven Barth via fpc-pascal 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,

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Marco van de Voort
In our previous episode, Sven Barth via fpc-pascal said: > > In FPC we currently don't use dotted unit names much, but maybe that will > change in the future. Afaik FV and LCL have conflicts. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: > He meant: > If you use units with namespaces and you can't use the -FN option, then > it becomes cumbersome to write them. Then a unit directive would be > nice to have. Yes, but both the directive and the uses would be a modification anyway. I

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Ryan Joseph
> On May 6, 2018, at 2:40 PM, Sven Barth via fpc-pascal > wrote: > > The namespaces in Object Pascal are merely a convenience thing. E.g. Delphi > prefixed many of the existing units (like SysUtils became System.SysUtils, > Windows became WinApi.Windows and

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Sven Barth via fpc-pascal
Tomas Hajny schrieb am Sa., 5. Mai 2018, 19:52: > On Sat, May 5, 2018 19:23, Sven Barth via fpc-pascal wrote: > > > Hi Sven, > > . > . > > (e.g. "MyUnits" or "FCL.XML" or "FCL.Web.Base"). Like with all similar > > -F parameters -FN only takes a single value, but can be

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am So., 6. Mai 2018, 09:16: > > > > On May 6, 2018, at 1:46 PM, Mattias Gaertner > wrote: > > > > He meant: > > If you use units with namespaces and you can't use the -FN option, then > > it becomes cumbersome to write

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Sven Barth via fpc-pascal
Ben Grasset schrieb am So., 6. Mai 2018, 03:16: > Cool I guess. Kind of seems not very important at all though. FPC lacks > compatibility with current Delphi in various other far more significant > areas... > It was something that was relatively easy to implement and what

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Ryan Joseph
> On May 6, 2018, at 1:46 PM, Mattias Gaertner > wrote: > > He meant: > If you use units with namespaces and you can't use the -FN option, then > it becomes cumbersome to write them. Then a unit directive would be > nice to have. But does FPC have actual namespaces

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Mattias Gaertner
On Sun, 6 May 2018 09:11:23 +0700 Ryan Joseph wrote: > > On May 6, 2018, at 12:23 AM, Sven Barth via fpc-pascal > > wrote: > > > > For some users it might be cumbersome however to write the complete names > > (even though their IDE

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Ryan Joseph
> On May 6, 2018, at 12:23 AM, Sven Barth via fpc-pascal > wrote: > > For some users it might be cumbersome however to write the complete names > (even though their IDE of choice might support them here) or maybe they have > different sets of units with same

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Ben Grasset
Cool I guess. Kind of seems not very important at all though. FPC lacks compatibility with current Delphi in various other far more significant areas... Virus-free. www.avast.com

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Sven Barth via fpc-pascal
Michael Van Canneyt schrieb am Sa., 5. Mai 2018, 21:24: > > > On Sat, 5 May 2018, Sven Barth via fpc-pascal wrote: > > > Hello together! > > > > I'm pleased to announce the implementation of a new feature: default > > namespaces. > > Great !! Nice job, Sven :) > > > Enter

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > >> or is this still planned ? > > > > How would this work anyway? Same problem like where to put a global $define > > ? > > Not sure what you mean ? > > {$NAMESPACE FMX} > > interface > > uses controls; -> Resolves to FMX.Controls ? I took

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Michael Van Canneyt
On Sat, 5 May 2018, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: Is there a reason you didn't implement a global directive: {$NAMESPACE somens} or is this still planned ? How would this work anyway? Same problem like where to put a global $define ? Not

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > Is there a reason you didn't implement a global directive: > > {$NAMESPACE somens} > > or is this still planned ? How would this work anyway? Same problem like where to put a global $define ? ___

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Michael Van Canneyt
On Sat, 5 May 2018, Sven Barth via fpc-pascal wrote: Hello together! I'm pleased to announce the implementation of a new feature: default namespaces. Great !! Nice job, Sven :) Enter default namespaces. The compiler is told about a default namespace using the new -FN parameter,

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-05 Thread Tomas Hajny
On Sat, May 5, 2018 19:23, Sven Barth via fpc-pascal wrote: Hi Sven, . . > (e.g. "MyUnits" or "FCL.XML" or "FCL.Web.Base"). Like with all similar > -F parameters -FN only takes a single value, but can be specified > multiple times. . . I'm not sure what are 'all similar -F parameters', but