Re: [fpc-devel] Default properties

2018-09-18 Thread Ryan Joseph
> On Sep 10, 2018, at 4:23 PM, Ryan Joseph wrote: > > I think I can use tcallcandidates.create_operator to test this but what do I > pass for the call param node? I didn’t get an answer on this but I was able to figure it out for myself, albeit only for arithmetic operators, i.e. class

Re: [fpc-devel] Default properties

2018-09-10 Thread Ryan Joseph
One more question. With the syntax: wrapper + 1 I get to the point where I have 2 nodes parsed. p2 is an ordconst node (the value “1") and p1 is a load node (wrapper, which is a record). I need to check the resultdef for p1 to see if the + operator is overloaded so I can determine if the base

Re: [fpc-devel] Default properties

2018-09-10 Thread Ryan Joseph
> On Sep 7, 2018, at 6:27 PM, Sven Barth via fpc-devel > wrote: > > tcallcandidates in htypechk.pas is your friend. That is the *only* class that > deals with overload resolution and collects the eligible overloads from > various sources (e.g. loaded units, current type, helper types).

Re: [fpc-devel] Default properties

2018-09-07 Thread Sven Barth via fpc-devel
Ryan Joseph schrieb am Fr., 7. Sep. 2018, 11:59: > I’m moving my technical questions about default properties here so I don’t > clutter up the other list. I’m still new to the compiler please bear with > me. > > The first problem I’m having is how to resolve duplicate functions with > overloads.

[fpc-devel] Default properties

2018-09-07 Thread Ryan Joseph
I’m moving my technical questions about default properties here so I don’t clutter up the other list. I’m still new to the compiler please bear with me. The first problem I’m having is how to resolve duplicate functions with overloads. For example in TWrapper there’s multiple overloads for