> On Jun 21, 2019, at 1:59 PM, Ryan Joseph <generic...@gmail.com> wrote: > > Even though overloads are allowed the actual name isn’t overloaded so you > MUST access without the name to get overloading affects. I didn’t overload > the actual name because properties aren’t really functions and as such don’t > use tcallcandiates etc… If you attempt to use the name of the default > property the last property declared wins. Is that ok? I hope so because I > imagine it’s lots of work to actually make property names behave like real > functions and not worth it imo.
Thought about this more and it doesn’t make sense. Actually I think the name should overload also so all these should work: a[1]; a[‘aa’]; a[1, ‘aaa']; a.values[1]; a.values[‘aa’]; a.values[1, ‘aaa']; I’ll fix that once I’m sure what I’ve done so far is correct. Regards, Ryan Joseph _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel