Re: [fpc-devel] [] property overloads

2019-06-20 Thread Michael Van Canneyt
On Thu, 20 Jun 2019, Ryan Joseph wrote: On Jun 20, 2019, at 4:59 PM, Sven Barth via fpc-devel wrote: It will need to be be allowed for Delphi compatibility anyway: https://bugs.freepascal.org/view.php?id=29056 Well that settles it. ;) Indeed. You can be sure that patches for this

Re: [fpc-devel] [] property overloads

2019-06-20 Thread Ryan Joseph
> On Jun 20, 2019, at 4:59 PM, Sven Barth via fpc-devel > wrote: > > It will need to be be allowed for Delphi compatibility anyway: > https://bugs.freepascal.org/view.php?id=29056 > Well that settles it. ;) Regards, Ryan Joseph ___

Re: [fpc-devel] [] property overloads

2019-06-20 Thread Sven Barth via fpc-devel
Michael Van Canneyt schrieb am Do., 20. Juni 2019, 22:05: > But maybe the compiler people can see a reason why this should not be > allowed. > It will need to be be allowed for Delphi compatibility anyway: https://bugs.freepascal.org/view.php?id=29056 Regards, Sven >

Re: [fpc-devel] [] property overloads

2019-06-20 Thread Ryan Joseph
> On Jun 20, 2019, at 3:58 PM, Michael Van Canneyt > wrote: > > The point is that there is in my example only 'Values' which is a unique > name. Making that 'Default' just means that the 'Values' keyword can be left > out. > making the 'Values' array the single default. Got it. The default

Re: [fpc-devel] [] property overloads

2019-06-20 Thread Michael Van Canneyt
On Thu, 20 Jun 2019, Ryan Joseph wrote: On Jun 20, 2019, at 2:17 PM, Michael Van Canneyt wrote: IMHO this goes contrary to what the word 'default' means. There can be only 1 default. I think the name of “default” was probably a mistake and it should have been “nameless” or something

Re: [fpc-devel] [] property overloads

2019-06-20 Thread Ryan Joseph
> On Jun 20, 2019, at 2:17 PM, Michael Van Canneyt > wrote: > > IMHO this goes contrary to what the word 'default' means. There can be only > 1 default. I think the name of “default” was probably a mistake and it should have been “nameless” or something similar. Not sure why it was chosen

Re: [fpc-devel] [] property overloads

2019-06-20 Thread Michael Van Canneyt
On Thu, 20 Jun 2019, Ryan Joseph wrote: I just had some plans for a cool JSON class thwarted because apparently [] properties don’t allow overloading of the parameters. Can we allow multiple default properties as long as their parameters are different? I know there’s not overloading of

[fpc-devel] [] property overloads

2019-06-20 Thread Ryan Joseph
I just had some plans for a cool JSON class thwarted because apparently [] properties don’t allow overloading of the parameters. Can we allow multiple default properties as long as their parameters are different? I know there’s not overloading of property names but at least the parameters could