[fpc-pascal] type helpers
nc-gaertnma at netcologne.de
Fri Jan 11 14:52:36 CET 2019
On Fri, 11 Jan 2019 14:27:13 +0100
Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> This is by design. In this case DoIt is called on a temp variable
> that gets its value from b.w, the value of b.FW does not change
Ehm, in this case b.FW *does* changes.
Maybe you mean the case
property W: word read GetW;
With a getter method indeed a temp variable is changed by the
> reason why the C operators do not work on properties). Same happens
> with constants btw: Word(42).DoIt will work as well.
Well, at least 3.DoIt is rejected.
More information about the fpc-pascal