Re: [Lazarus] TMask revisited

2021-10-15 Thread DougC via lazarus
Shouldn't the mask "*.pas*" be used to match file.pas.bak ? If so, the old code and new code are ok. Doug C. On Fri, 15 Oct 2021 17:09:03 -0400 Bart via lazarus wrote On Fri, Oct 15, 2021 at 2:38 PM Maxim Ganetsky via lazarus wrote: >

Re: [Lazarus] TMask revisited

2021-10-15 Thread Bart via lazarus
On Fri, Oct 15, 2021 at 1:55 AM Juha Manninen via lazarus wrote: > > On Thu, Oct 14, 2021 at 7:57 PM Bart via lazarus > wrote: >> >> You have changed the existing interface for both TMask and the >> Matches(Windows)Mask(List) functions. >> TMaskOptions has been removed. > > > It can be added fo

Re: [Lazarus] TMask revisited

2021-10-15 Thread Bart via lazarus
On Fri, Oct 15, 2021 at 2:38 PM Maxim Ganetsky via lazarus wrote: > Please try with, for example bla.pas and bla.pas.bak files. Mask: *.pas;*.pp;*.inc Filename: file.pas.bak Result: does not match, both in the old code and the new code. -- Bart -- _

Re: [Lazarus] TMask revisited

2021-10-15 Thread Juha Manninen via lazarus
On Fri, Oct 15, 2021 at 3:38 PM Maxim Ganetsky via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Please try with, for example bla.pas and bla.pas.bak files. > I did basically that. I copied a .pas file to .pas.bak. Find in Files does not find extra entries with File mask "*.pas;*.pp;*.inc;*.l

Re: [Lazarus] TMask revisited

2021-10-15 Thread Juha Manninen via lazarus
On Fri, Oct 15, 2021 at 3:10 PM Sven Barth via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Non-static class methods *do* have a Self parameter, but it's the class > type and not the class instance. They can also be virtual, which is a > really great feature of the Object Pascal language (I o

Re: [Lazarus] TMask revisited

2021-10-15 Thread Maxim Ganetsky via lazarus
15.10.2021 02:07, Juha Manninen via lazarus пишет: On Thu, Oct 14, 2021 at 12:53 AM Maxim Ganetsky via lazarus mailto:lazarus@lists.lazarus-ide.org>> wrote: Don't know if it is related but just noticed that `Find in files` dialog now "ignores" file masks. E. g. I have the foll

Re: [Lazarus] TMask revisited

2021-10-15 Thread Sven Barth via lazarus
Juha Manninen via lazarus schrieb am Fr., 15. Okt. 2021, 14:03: > This may be a dummy question but what does "static" do for a class > procedure? > José's mask code has for example: > > class procedure Exception_IncompleteMask(); static; > > I thought class procedures are kind of static anyways

Re: [Lazarus] TMask revisited

2021-10-15 Thread Juha Manninen via lazarus
This may be a dummy question but what does "static" do for a class procedure? José's mask code has for example: class procedure Exception_IncompleteMask(); static; I thought class procedures are kind of static anyways, meaning they don't have a Self pointer. Juha -- __

Re: [Lazarus] TMask revisited

2021-10-15 Thread Juha Manninen via lazarus
I restored the backwards compatible TMaskOptions in 04b0a04a45. Please test. When ranges (sets) are disabled, [] is interpreted as literal []. Works perfectly. Next I will study the little syntax differences. There should be a backwards compatible option for those, too. Juha -- _