[fpc-devel] Inc() and Dec() on properties

Sven Barth pascaldragon at googlemail.com
Fri Dec 20 22:33:02 CET 2013


On 20.12.2013 22:02, Mark Morgan Lloyd wrote:
> A question if I may, leading on from
> http://bugs.freepascal.org/view.php?id=25440
>
>  > - inc(x)/dec(x) with range checking enabled are "optimized" with
>  > taking address of x.
>
> Is that why Inc() and Dec() can't be applied to properties, or are there
> other issues?

http://wiki.freepascal.org/User_Changes_2.4.0#Treating_direct-mapped_properties_as_regular_fields

Regards,
Sven



More information about the fpc-devel mailing list