Ryan Joseph <[email protected]> schrieb am Mo., 8. Juli 2019, 18:04:
> > > > On Jul 8, 2019, at 11:07 AM, Sven Barth via fpc-devel < > [email protected]> wrote: > > > > As Pascal does not allow differentiating between result types this > indeed needs to be/stay forbidden. > > > > There actually is a need to distinguish between getters/setters but the > way property syntax works we’re forced for the return type to be the same > as the input for the setter. This is a problem I faced before where I want > the getter to return a pointer but I want the setter to take a direct value. > Well, in theory you could use a read only index property that returns a pointer and a write only index property that takes the type as is. But overloading only based on the result type is not supported. Regards, Sven
_______________________________________________ fpc-devel maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
