[fpc-pascal] with in classes/records

Ryan Joseph ryan at thealchemistguild.com
Sun Sep 9 14:58:49 CEST 2018



> On Sep 9, 2018, at 5:01 PM, Martin <fpc at mfriebe.de> wrote:
> 
> And how should the rules be for mixing with class helpers? (In case of conflicting names)

On the dev list Sven told me to use the tcallcandidates class to resolve overloads and I believe this handles searching class helpers also. So I guess the answer is whatever is standard behavior in FPC.

Since the base class takes precedence the example would search in the order:

TWrapper
THelperA
THelperB

If that’s allowed it’s basically the same as subclassing but in records.

Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list