Re[7]: [fpc-devel] static vs dynamic arrays

2006-04-04 Thread Michael Van Canneyt
On Tue, 4 Apr 2006, ??? wrote: Because of the copy-on-write mechanism. The reference count must be checked each time you do a write. This is normal. It's the same in Delphi, and a good reason for avoiding dynamic arrays. You can use pointer arithmetics in FPC, it works as a dynam

Re[7]: [fpc-devel] static vs dynamic arrays

2006-04-04 Thread Пётр Косаревский
> Because of the copy-on-write mechanism. The reference count must be > checked each time you do a write. This is normal. It's the same in > Delphi, and a good reason for avoiding dynamic arrays. > > You can use pointer arithmetics in FPC, it works as a dynamic array, but > without the overhead.