[fpc-other] Use of ARC

2014-10-30 Thread Hans-Peter Diettrich
Let me start just another thread, to remove noise from fpc-devel. These are my opinions about the requirement and use of ARC in FPC: 1) ARC has been introduced in Delphi for *mobile* platforms (only), so a discussion of its impact on such (small) targets is useless. I'm not sure which

Re: [fpc-other] Use of ARC

2014-10-30 Thread Mark Morgan Lloyd
Hans-Peter Diettrich wrote: 3a) Instead I'd vote for a dynamic implementation, as with Interfaces, by adding a refcount field and (virtual?) counting methods to TObject. This overhead should be acceptable, just like for other managed types (dynamic strings, arrays...). Then the compiler

Re: [fpc-other] Use of ARC

2014-10-30 Thread Hans-Peter Diettrich
Mark Morgan Lloyd schrieb: Hans-Peter Diettrich wrote: 3a) Instead I'd vote for a dynamic implementation, as with Interfaces, by adding a refcount field and (virtual?) counting methods to TObject. This overhead should be acceptable, just like for other managed types (dynamic strings,