[fpc-devel] modeswitch multihelpers
Stefan Glienke
sglienke at dsharp.org
Mon May 13 11:33:36 CEST 2019
I want to argue that the way this is implemented is asking for easily introducing defects into existing code by extending/modifying helpers causing methods to creep into scope.
If multiple helpers should be considered they should be treated equally and not by order treating equally named methods as overloads similar to how C# extension methods work.
> On 13 May 2019 at 02:25 Ryan Joseph <ryan at thealchemistguild.com mailto:ryan at thealchemistguild.com > wrote:
>
>
>
> > > On May 12, 2019, at 4:03 AM, Ondrej Pokorny <lazarus at kluug.net mailto:lazarus at kluug.net > wrote:
> >
> > I'd like to thank Ryan & Sven for extending the helpers to be able to handle multiple helpers.
> >
> > Now I can remove my (obtrusive) helper inheritance
> >
> > THelper2 = class helper(THelper1) for TMyObject
> >
> > very good!
> >
> > This feature deserves a bold announcement. Now we are only missing Lazarus IDE codetools support for it :)
> >
> > Again - big thanks.
> >
> > > You’re welcome. I’m looking forward to fixing up some old code myself. :)
>
> Regards,
> Ryan Joseph
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org mailto:fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
More information about the fpc-devel
mailing list