Re: [Lazarus] Helper for arrays

2016-10-02 Thread Aradeonas via Lazarus
> Maybe you can raise a discussion / feature request in the fpc-devel > mailing list to include type helpers for generic arrays? So we can have this feature for array it self and should use it for generic arrays? Regards, Ara -- http://www.fastmail.com - A no graphics, no pop-ups email

Re: [Lazarus] Helper for arrays

2016-10-02 Thread Maciej Izak via Lazarus
2016-10-02 16:20 GMT+02:00 Ondrej Pokorny via Lazarus < lazarus@lists.lazarus-ide.org>: > Maybe you can raise a discussion / feature request in the fpc-devel > mailing list to include type helpers for generic arrays? : This was discussed in Smart Pointers topic:

Re: [Lazarus] Helper for arrays

2016-10-02 Thread Aradeonas via Lazarus
Ondrej can you point me to a sample? I know I can make helper for array of integer but I want some helpers for all type of arrays. Regards, Ara -- http://www.fastmail.com - Faster than the air-speed velocity of an unladen european swallow --

Re: [Lazarus] Helper for arrays

2016-10-02 Thread Maciej Izak via Lazarus
2016-10-02 14:39 GMT+02:00 Aradeonas via Lazarus < lazarus@lists.lazarus-ide.org>: > Can I have or make helper for arrays? like making Count property so I can > use it instead of Length ? Try to use TDynArray dynamic array wrapper provided by mORMot framework.

Re: [Lazarus] Helper for arrays

2016-10-02 Thread DougC via Lazarus
I don't know the answer about helper function but I also dislike Length() for arrays. I solve this dislike by using for i := Low(IntegerArray) to High(IntegerArray) do which covers more possibilities because it handles lower index limit that is non-zero. Low() and High() also work with

[Lazarus] Helper for arrays

2016-10-02 Thread Aradeonas via Lazarus
Hi, Can I have or make helper for arrays? like making Count property so I can use it instead of Length ? For example : > IntegerArray : array of integer; > > for i:= to IntegerArray.Count -1 do > Regards, Ara -- http://www.fastmail.com - The professional email service --