Re: [fpc-devel] Is that supposed to work: property with "[var index: TFoo]" ?

2019-06-29 Thread Martin Frb
On 29/06/2019 23:43, Sven Barth via fpc-devel wrote: Am 28.06.2019 um 10:39 schrieb Martin Frb: What does Delphi do with     property Foo[AIndex: Integer; BIndex: Integer = 0]: Integer read GetFoo; Because FPC rejects this one. (And IMHO rightfully so) Hope this madness can be avoided in

Re: [fpc-devel] Is that supposed to work: property with "[var index: TFoo]" ?

2019-06-29 Thread Sven Barth via fpc-devel
Am 28.06.2019 um 10:39 schrieb Martin Frb: On 28/06/2019 07:39, Sven Barth via fpc-devel wrote: Am 27.06.2019 um 21:09 schrieb Martin:   { TFoo }   TFoo = class   private     function GetFoo(var AIndex: Integer): Integer;   public     property Foo[var AIndex: Integer]: Integer read GetFoo;  

Re: [fpc-devel] "Maybe Gareth can be convinced to spend his energy on this ... "

2019-06-29 Thread George Bakhtadze
 This assumption is *not* incorrect. Only on the LLVM based Delphi NewGen and FPC's LLVM backend the assumption is incorrect which can be seen by them having added "volatile" mechanisms.  I believe this assumption incorrect because it's not stated in documentation as correct.If FPC somehow

Re: [fpc-devel] "Maybe Gareth can be convinced to spend his energy on this ... "

2019-06-29 Thread George Bakhtadze
> As an side since you’re talking about optimizations what would it take to > make the copy/addref record operators be inline? Unless I’m mistaken that’s > one of the bigger issues that makes custom ref counted objects slower than > built in compiler types. Just curious... I believe counter's

Re: [fpc-devel] "Maybe Gareth can be convinced to spend his energy on this ... "

2019-06-29 Thread Sven Barth via fpc-devel
George Bakhtadze schrieb am Sa., 29. Juni 2019, 09:32: > > > This assumption is *not* incorrect. Only on the LLVM based Delphi NewGen > and FPC's LLVM backend the assumption is incorrect which can be seen by > them having added "volatile" mechanisms. > > > I believe this assumption incorrect

Re: [fpc-devel] "Maybe Gareth can be convinced to spend his energy on this ... "

2019-06-29 Thread Florian Klaempfl
Am 28.06.2019 um 11:24 schrieb George Bakhtadze: This assumption is *not* incorrect. Only on the LLVM based Delphi NewGen and FPC's LLVM backend the assumption is incorrect which can be seen by them having added "volatile" mechanisms. I believe this assumption incorrect because

Re: [fpc-devel] "Maybe Gareth can be convinced to spend his energy on this ... "

2019-06-29 Thread Sven Barth via fpc-devel
Florian Klaempfl schrieb am Sa., 29. Juni 2019, 15:52: > Am 28.06.2019 um 11:24 schrieb George Bakhtadze: > > This assumption is *not* incorrect. Only on the LLVM based Delphi > > NewGen and FPC's LLVM backend the assumption is incorrect which can > > be seen by them having added