Re: [fpc-pascal] overloaded property index

2016-08-13 Thread Luca Olivetti
El 13/08/16 a les 00:28, Jonas Maebe ha escrit: On 12/08/16 22:51, Luca Olivetti wrote: El 12/08/16 a les 20:40, Jonas Maebe ha escrit: On 12/08/16 20:32, Sven Barth wrote: Better don't rely on it then. If at all it would be implemented properly (and for Delphi compatibility it probably will).

Re: [fpc-pascal] overloaded property index

2016-08-12 Thread Jonas Maebe
On 12/08/16 22:51, Luca Olivetti wrote: El 12/08/16 a les 20:40, Jonas Maebe ha escrit: On 12/08/16 20:32, Sven Barth wrote: Better don't rely on it then. If at all it would be implemented properly (and for Delphi compatibility it probably will). According to the bug report mentioned in the f

Re: [fpc-pascal] overloaded property index

2016-08-12 Thread Luca Olivetti
El 12/08/16 a les 20:40, Jonas Maebe ha escrit: On 12/08/16 20:32, Sven Barth wrote: Better don't rely on it then. If at all it would be implemented properly (and for Delphi compatibility it probably will). According to the bug report mentioned in the first message of this thread, Delphi only

Re: [fpc-pascal] overloaded property index

2016-08-12 Thread Sven Barth
Am 12.08.2016 20:40 schrieb "Jonas Maebe" : > > On 12/08/16 20:32, Sven Barth wrote: >> >> Better don't rely on it then. If at all it would be implemented properly >> (and for Delphi compatibility it probably will). > > > According to the bug report mentioned in the first message of this thread, De

Re: [fpc-pascal] overloaded property index

2016-08-12 Thread Jonas Maebe
On 12/08/16 20:32, Sven Barth wrote: Better don't rely on it then. If at all it would be implemented properly (and for Delphi compatibility it probably will). According to the bug report mentioned in the first message of this thread, Delphi only supports overloading for default properties.

Re: [fpc-pascal] overloaded property index

2016-08-12 Thread Sven Barth
Am 12.08.2016 17:27 schrieb "Luca Olivetti" : > > El 12/08/16 a les 17:13, Sven Barth ha escrit: > > >>> >>> Is this by design or is it just an accident? >> >> >> Accident. > > > Ouch! > In that case please, don't fix it ;-) Better don't rely on it then. If at all it would be implemented properly

Re: [fpc-pascal] overloaded property index

2016-08-12 Thread Michael Van Canneyt
On Fri, 12 Aug 2016, Luca Olivetti wrote: El 12/08/16 a les 17:13, Sven Barth ha escrit: Is this by design or is it just an accident? Accident. Ouch! In that case please, don't fix it ;-) Or better, properly implement array property overloading... Michael. ___

Re: [fpc-pascal] overloaded property index

2016-08-12 Thread Luca Olivetti
El 12/08/16 a les 17:13, Sven Barth ha escrit: Is this by design or is it just an accident? Accident. Ouch! In that case please, don't fix it ;-) Bye -- Luca ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/

Re: [fpc-pascal] overloaded property index

2016-08-12 Thread Sven Barth
Am 12.08.2016 16:52 schrieb "Luca Olivetti" : > > I'm still using fpc 2.6.4 (but I tested what I'm saying below with fpc 3.0.0 too). > > I need to overload the type of the index of an indexed property, e.g. > > function GetMyProp(index:integer):TMyPropType; > function GetMyProp(index:TMyType):TMyPr

[fpc-pascal] overloaded property index

2016-08-12 Thread Luca Olivetti
I'm still using fpc 2.6.4 (but I tested what I'm saying below with fpc 3.0.0 too). I need to overload the type of the index of an indexed property, e.g. function GetMyProp(index:integer):TMyPropType; function GetMyProp(index:TMyType):TMyPropType; property MyProp[index:integer]:TMyPropType