[fpc-pascal] Property write access on records
pascaldragon at googlemail.com
Sat Mar 7 09:39:43 CET 2020
Ryan Joseph via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
Sa., 7. März 2020, 05:18:
> > On Mar 7, 2020, at 5:15 AM, Sven Barth <pascaldragon at googlemail.com>
> > I've found two bug reports related to this (I searched for "property"
> and only those reports that are neither closed nor resolved):
> > - https://bugs.freepascal.org/view.php?id=23620
> > - https://bugs.freepascal.org/view.php?id=14534
> > And I noticed that the following already does generate an error:
> Yes, you're right this does trigger the correct error. My example was
> actually bad because I didn't notice that my problem was coming from a more
> complex situation.
> Given the code I get no error because the "width" property of the helper
> is writeable but the "point" property is read-only. This should still give
> the error because even though "width" is writable the "point" is read-only
> and the assignment will still go to temporary memory, thus failing
> Should I file a new bug report for this?
Helpers indeed don't help there (pun intended :P). Please report, yes. And
add a reference to the two bug reports I mentioned.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal