Re: [fpc-devel] Who maintains TDictionary? // Re: RFC: Improvements for TDictionary and other hash containers

2025-04-13 Thread Martin Frb via fpc-devel
On 13/04/2025 21:37, Michael Van Canneyt via fpc-devel wrote: On Sun, 13 Apr 2025, Martin Frb via fpc-devel wrote: On 13/04/2025 20:43, Michael Van Canneyt via fpc-devel wrote: But why don't you simply use a TList with your custom comparer ? You can then use List.BinarySearch() and retriev

Re: [fpc-devel] Who maintains TDictionary? // Re: RFC: Improvements for TDictionary and other hash containers

2025-04-13 Thread Michael Van Canneyt via fpc-devel
On Sun, 13 Apr 2025, Martin Frb via fpc-devel wrote: When the mailer decides to sent On 13/04/2025 21:17, Martin Frb wrote: On 13/04/2025 20:43, Michael Van Canneyt via fpc-devel wrote: But why don't you simply use a TList with your custom comparer ? You can then use List.BinarySearch

Re: [fpc-devel] Who maintains TDictionary? // Re: RFC: Improvements for TDictionary and other hash containers

2025-04-13 Thread Michael Van Canneyt via fpc-devel
On Sun, 13 Apr 2025, Martin Frb via fpc-devel wrote: On 13/04/2025 20:43, Michael Van Canneyt via fpc-devel wrote: But why don't you simply use a TList with your custom comparer ? You can then use List.BinarySearch() and retrieve the existing TRange at once? Your solution seems quite hac

Re: [fpc-devel] Who maintains TDictionary? // Re: RFC: Improvements for TDictionary and other hash containers

2025-04-13 Thread Martin Frb via fpc-devel
When the mailer decides to sent On 13/04/2025 21:17, Martin Frb wrote: On 13/04/2025 20:43, Michael Van Canneyt via fpc-devel wrote: But why don't you simply use a TList with your custom comparer ? You can then use List.BinarySearch() and retrieve the existing TRange at once? Your solut

Re: [fpc-devel] Who maintains TDictionary? // Re: RFC: Improvements for TDictionary and other hash containers

2025-04-13 Thread Martin Frb via fpc-devel
On 13/04/2025 20:43, Michael Van Canneyt via fpc-devel wrote: But why don't you simply use a TList with your custom comparer ? You can then use List.BinarySearch() and retrieve the existing TRange at once? Your solution seems quite hackish to me. So if you really need it in TDictionary, make

Re: [fpc-devel] Who maintains TDictionary? // Re: RFC: Improvements for TDictionary and other hash containers

2025-04-13 Thread Martin Frb via fpc-devel
On 13/04/2025 19:49, Michael Van Canneyt wrote: On Sun, 13 Apr 2025, Martin Frb via fpc-devel wrote: Just want to know if there is any interest?   Or if I just gonna do my own copy (somewhere in LazUtils) The 1-4 are interesting so MR is welcome, ok, I will work on that. the 5 I don't

Re: [fpc-devel] Who maintains TDictionary? // Re: RFC: Improvements for TDictionary and other hash containers

2025-04-13 Thread Michael Van Canneyt via fpc-devel
On Sun, 13 Apr 2025, Martin Frb via fpc-devel wrote: On 13/04/2025 19:49, Michael Van Canneyt wrote: On Sun, 13 Apr 2025, Martin Frb via fpc-devel wrote: Just want to know if there is any interest?   Or if I just gonna do my own copy (somewhere in LazUtils) The 1-4 are interesting so MR

Re: [fpc-devel] Who maintains TDictionary? // Re: RFC: Improvements for TDictionary and other hash containers

2025-04-13 Thread Michael Van Canneyt via fpc-devel
On Sun, 13 Apr 2025, Martin Frb via fpc-devel wrote: Just want to know if there is any interest?   Or if I just gonna do my own copy (somewhere in LazUtils) The 1-4 are interesting so MR is welcome, the 5 I don't understand what you want to achieve, I would assume a custom comparer is simpl

[fpc-devel] Who maintains TDictionary? // Re: RFC: Improvements for TDictionary and other hash containers

2025-04-13 Thread Martin Frb via fpc-devel
Just want to know if there is any interest?   Or if I just gonna do my own copy (somewhere in LazUtils) If its too busy right now, then just an ack, and a "maybe in 4/6/8/10? weeks"... would be nice. Thanks On 05/04/2025 12:07, Martin Frb via fpc-devel wrote: On 03/04/2025 13:52, Martin Frb

Re: [fpc-devel] "automated" section

2025-04-13 Thread Michael Van Canneyt via fpc-devel
On Sun, 13 Apr 2025, Martin Frb via fpc-devel wrote: According to a comment in the Lazarus Highlighter code, there either is or used to be a class section "automated" (just like public, private, ...) I can't find many refs in the fpc source. The most helpful (if calling it that) is from  pa